dd: simplify -fsanitize=leak pacification

* src/dd.c (cleanup) [lint]: Omit unnecessary cleanup.
(main): Use main_exit, not return.
This commit is contained in:
Paul Eggert committed 2022-01-31 12:07:39 -08:00
1 parent f21ccfb02c
commit d85374258a
1 file changed
+1 -7
+1 -7
View File
@@ -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);
}