mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-18 01:18:51 +02:00
date: simplify -fsanitize=leak pacification
* src/date.c (main) [lint]: Omit unnecessary cleanup. Use main_exit, not return.
This commit is contained in:
+1
-4
@@ -624,10 +624,7 @@ main (int argc, char **argv)
|
||||
ok &= show_date (format_res, when, tz);
|
||||
}
|
||||
|
||||
IF_LINT (tzfree (tz));
|
||||
IF_LINT (free (format_copy));
|
||||
|
||||
return ok ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
main_exit (ok ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Display the date and/or time in WHEN according to the format specified
|
||||
|
||||
Reference in New Issue
Block a user