mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-05 08:10:15 +02:00
numfmt: simplify -fsanitize=leak pacification
* src/numfmt.c (main) [lint]: Omit unnecessary cleanup. Use main_exit, not return.
This commit is contained in:
+1
-10
@@ -1627,19 +1627,10 @@ main (int argc, char **argv)
|
||||
valid_numbers &= process_line (line, newline);
|
||||
}
|
||||
|
||||
IF_LINT (free (line));
|
||||
|
||||
if (ferror (stdin))
|
||||
error (0, errno, _("error reading input"));
|
||||
}
|
||||
|
||||
#ifdef lint
|
||||
free (padding_buffer);
|
||||
free (format_str_prefix);
|
||||
free (format_str_suffix);
|
||||
reset_fields ();
|
||||
#endif
|
||||
|
||||
if (debug && !valid_numbers)
|
||||
error (0, 0, _("failed to convert some of the input numbers"));
|
||||
|
||||
@@ -1648,5 +1639,5 @@ main (int argc, char **argv)
|
||||
&& inval_style != inval_warn && inval_style != inval_ignore)
|
||||
exit_status = EXIT_CONVERSION_WARNINGS;
|
||||
|
||||
return exit_status;
|
||||
main_exit (exit_status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user