mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 05:13:04 +00:00
quotearg: avoid leaks
Reported by Tomasz Kłoczko. https://lists.gnu.org/archive/html/bug-bison/2019-09/msg00008.html * src/main.c (main): Free quotearg's memory later.
This commit is contained in:
@@ -223,7 +223,6 @@ main (int argc, char *argv[])
|
||||
muscle_free ();
|
||||
code_scanner_free ();
|
||||
skel_scanner_free ();
|
||||
quotearg_free ();
|
||||
timevar_pop (tv_free);
|
||||
|
||||
if (trace_flag & trace_bitsets)
|
||||
@@ -249,6 +248,7 @@ main (int argc, char *argv[])
|
||||
uniqstrs_free ();
|
||||
|
||||
complain_free ();
|
||||
quotearg_free ();
|
||||
|
||||
return complaint_status ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user