1
0
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:
Paul Eggert
2022-01-31 08:42:07 -08:00
parent 423fed3dd8
commit 7e7ecf20aa
+1 -4
View File
@@ -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