shuf: simplify -fsanitize=leak pacification

* src/shuf.c (main) [lint]: Omit unnecessary cleanup.
Use main_exit, not return.
This commit is contained in:
Paul Eggert committed 2022-01-31 12:07:39 -08:00
1 parent 8692f2a6d3
commit 0106b5a4b8
1 file changed
+1 -18
+1 -18
View File
@@ -595,22 +595,5 @@ main (int argc, char **argv)
if (i != 0)
die (EXIT_FAILURE, errno, _("write error"));
#ifdef lint
free (permutation);
randint_all_free (randint_source);
if (input_lines)
{
free (input_lines[0]);
free (input_lines);
}
if (reservoir)
{
size_t j;
for (j = 0; j < n_lines; ++j)
freebuffer (&reservoir[j]);
free (reservoir);
}
#endif
return EXIT_SUCCESS;
main_exit (EXIT_SUCCESS);
}