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:
Akim Demaille
2019-09-22 18:15:36 +02:00
parent 0b093ac4d9
commit b2c381cd25
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -180,6 +180,7 @@ Tobias Frost [email protected]
Todd Freed [email protected] Todd Freed [email protected]
Tom Lane [email protected] Tom Lane [email protected]
Tom Tromey [email protected] Tom Tromey [email protected]
Tomasz Kłoczko [email protected]
Tommy Nordgren [email protected] Tommy Nordgren [email protected]
Troy A. Johnson [email protected] Troy A. Johnson [email protected]
Tys Lefering [email protected] Tys Lefering [email protected]
+1 -1
View File
@@ -223,7 +223,6 @@ main (int argc, char *argv[])
muscle_free (); muscle_free ();
code_scanner_free (); code_scanner_free ();
skel_scanner_free (); skel_scanner_free ();
quotearg_free ();
timevar_pop (tv_free); timevar_pop (tv_free);
if (trace_flag & trace_bitsets) if (trace_flag & trace_bitsets)
@@ -249,6 +248,7 @@ main (int argc, char *argv[])
uniqstrs_free (); uniqstrs_free ();
complain_free (); complain_free ();
quotearg_free ();
return complaint_status ? EXIT_FAILURE : EXIT_SUCCESS; return complaint_status ? EXIT_FAILURE : EXIT_SUCCESS;
} }