mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
pr: simplify -fsanitize=leak pacification
* src/pr.c (main): Remove an IF_LINT. Use main_exit rather than return.
This commit is contained in:
1 parent
75a87dc038
commit
5288f5ab5e
1 file changed
+1
-2
@@ -1144,11 +1144,10 @@ main (int argc, char **argv)
|
||||
}
|
||||
|
||||
cleanup ();
|
||||
IF_LINT (free (file_names));
|
||||
|
||||
if (have_read_stdin && fclose (stdin) == EOF)
|
||||
die (EXIT_FAILURE, errno, _("standard input"));
|
||||
return failed_opens ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
main_exit (failed_opens ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
/* Parse numeric arguments, ensuring MIN <= number <= INT_MAX. */
|
||||
|
||||
Reference in new issue
Block a user