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