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-21 15:01:45 +02:00
parent 6c7b2dfe51
commit 4901ee115b
2 changed files with 2 additions and 1 deletions

1
THANKS
View File

@@ -180,6 +180,7 @@ Tobias Frost tobi@debian.org
Todd Freed todd.freed@gmail.com
Tom Lane tgl@sss.pgh.pa.us
Tom Tromey tromey@cygnus.com
Tomasz Kłoczko kloczko.tomasz@gmail.com
Tommy Nordgren tommy.nordgren@chello.se
Troy A. Johnson troyj@ecn.purdue.edu
Tys Lefering gccbison@gmail.com

View File

@@ -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;
}