From b56827f9e48a34c9ca40a14dad886bb774a71861 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 31 Jan 2022 08:42:07 -0800 Subject: [PATCH 14/43] dd: simplify -fsanitize=leak pacification * src/dd.c (cleanup) [lint]: Omit unnecessary cleanup. (main): Use main_exit, not return. --- src/dd.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/dd.c b/src/dd.c index 4ddc6db12..e55f87f14 100644 --- a/src/dd.c +++ b/src/dd.c @@ -944,12 +944,6 @@ static int synchronize_output (void); static void cleanup (void) { -#ifdef lint - if (ibuf != obuf) - alignfree (ibuf); - alignfree (obuf); -#endif - if (!interrupt_signal) { int sync_status = synchronize_output (); @@ -2572,5 +2566,5 @@ main (int argc, char **argv) } finish_up (); - return exit_status; + main_exit (exit_status); } -- 2.32.0