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