mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
dd: simplify -fsanitize=leak pacification
* src/dd.c (cleanup) [lint]: Omit unnecessary cleanup. (main): Use main_exit, not return.
This commit is contained in:
1 parent
f21ccfb02c
commit
d85374258a
1 file changed
+1
-7
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user