From: Paul Eggert Date: Mon, 31 Jan 2022 16:42:07 +0000 (-0800) Subject: date: simplify -fsanitize=leak pacification X-Git-Tag: v9.1~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e7ecf20aa31d285a5e9e6fca758d60556679cb5;p=thirdparty%2Fcoreutils.git date: simplify -fsanitize=leak pacification * src/date.c (main) [lint]: Omit unnecessary cleanup. Use main_exit, not return. --- diff --git a/src/date.c b/src/date.c index 18ff22287e..0915d7c647 100644 --- a/src/date.c +++ b/src/date.c @@ -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