mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
html: fix memory leak
* src/print-xml.c (print_html): Free allocated memory.
This commit is contained in:
@@ -543,10 +543,10 @@ print_html (void)
|
||||
assert (xml_flag);
|
||||
|
||||
char *xml2html = xpath_join (pkgdatadir (), "xslt/xml2xhtml.xsl");
|
||||
|
||||
char *xsltproc = muscle_percent_define_get ("tool.xsltproc");
|
||||
char const *argv[11];
|
||||
int i = 0;
|
||||
argv[i++] = muscle_percent_define_get ("tool.xsltproc");
|
||||
argv[i++] = xsltproc;
|
||||
argv[i++] = "-o";
|
||||
argv[i++] = spec_html_file;
|
||||
argv[i++] = xml2html;
|
||||
@@ -572,5 +572,6 @@ print_html (void)
|
||||
/* termsigp */ NULL);
|
||||
if (status)
|
||||
complain (NULL, complaint, _("%s failed with status %d"), argv[0], status);
|
||||
free (xsltproc);
|
||||
free (xml2html);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user