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:
Akim Demaille
2019-04-15 07:37:55 +02:00
parent 2f3d9717ee
commit 79f7afb125
3 changed files with 11 additions and 2 deletions

View File

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