mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tr: pacify -fsanitizer=leak
* src/tr.c (main): Use main_exit, not return, in a couple of places missed last time.
This commit is contained in:
1 parent
222eee9631
commit
1b552e73e8
1 file changed
+2
-2
@@ -1778,13 +1778,13 @@ main (int argc, char **argv)
|
||||
|
||||
spec_init (s1);
|
||||
if (!parse_str (argv[optind], s1))
|
||||
return EXIT_FAILURE;
|
||||
main_exit (EXIT_FAILURE);
|
||||
|
||||
if (non_option_args == 2)
|
||||
{
|
||||
spec_init (s2);
|
||||
if (!parse_str (argv[optind + 1], s2))
|
||||
return EXIT_FAILURE;
|
||||
main_exit (EXIT_FAILURE);
|
||||
}
|
||||
else
|
||||
s2 = NULL;
|
||||
|
||||
Reference in new issue
Block a user