mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +00:00
diagnostics: fix memory leak in libtextstyle
* src/complain.h, src/complain.c (complain_free): New. * src/main.c: Use it.
This commit is contained in:
@@ -234,8 +234,6 @@ main (int argc, char *argv[])
|
||||
timevar_stop (tv_total);
|
||||
timevar_print (stderr);
|
||||
|
||||
caret_free ();
|
||||
|
||||
/* Fix input file now, even if there are errors: that's less
|
||||
warnings in the following runs. */
|
||||
if (!fixits_empty ())
|
||||
@@ -249,5 +247,7 @@ main (int argc, char *argv[])
|
||||
}
|
||||
uniqstrs_free ();
|
||||
|
||||
complain_free ();
|
||||
|
||||
return complaint_status ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user