mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00: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:
@@ -278,6 +278,12 @@ complain_init (void)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
complain_free (void)
|
||||
{
|
||||
caret_free ();
|
||||
styled_ostream_free (errstream);
|
||||
}
|
||||
|
||||
/* A diagnostic with FLAGS is about to be issued. With what severity?
|
||||
(severity_fatal, severity_error, severity_disabled, or
|
||||
|
||||
Reference in New Issue
Block a user