From 04df9be734c3ce150b7b46088397aa72fcfea929 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 31 Jan 2022 08:42:07 -0800 Subject: [PATCH 26/43] date: simplify -fsanitize=leak pacification * src/date.c (main) [lint]: Omit unnecessary cleanup. Use main_exit, not return. --- src/date.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/date.c b/src/date.c index 18ff22287..0915d7c64 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 -- 2.32.0