1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 10:51:48 +02:00

tac: simplify -fsanitize=leak pacification

* src/tac.c (main) [lint]: Omit unnecessary cleanup.
Use main_exit, not return.
This commit is contained in:
Paul Eggert
2022-01-31 08:42:07 -08:00
parent 0106b5a4b8
commit f3984a6dba

View File

@@ -704,10 +704,5 @@ main (int argc, char **argv)
ok = false;
}
#ifdef lint
size_t offset = sentinel_length ? sentinel_length : 1;
free (G_buffer - offset);
#endif
return ok ? EXIT_SUCCESS : EXIT_FAILURE;
main_exit (ok ? EXIT_SUCCESS : EXIT_FAILURE);
}