mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 17:23:02 +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);
|
assert (xml_flag);
|
||||||
|
|
||||||
char *xml2html = xpath_join (pkgdatadir (), "xslt/xml2xhtml.xsl");
|
char *xml2html = xpath_join (pkgdatadir (), "xslt/xml2xhtml.xsl");
|
||||||
|
char *xsltproc = muscle_percent_define_get ("tool.xsltproc");
|
||||||
char const *argv[11];
|
char const *argv[11];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
argv[i++] = muscle_percent_define_get ("tool.xsltproc");
|
argv[i++] = xsltproc;
|
||||||
argv[i++] = "-o";
|
argv[i++] = "-o";
|
||||||
argv[i++] = spec_html_file;
|
argv[i++] = spec_html_file;
|
||||||
argv[i++] = xml2html;
|
argv[i++] = xml2html;
|
||||||
@@ -572,5 +572,6 @@ print_html (void)
|
|||||||
/* termsigp */ NULL);
|
/* termsigp */ NULL);
|
||||||
if (status)
|
if (status)
|
||||||
complain (NULL, complaint, _("%s failed with status %d"), argv[0], status);
|
complain (NULL, complaint, _("%s failed with status %d"), argv[0], status);
|
||||||
|
free (xsltproc);
|
||||||
free (xml2html);
|
free (xml2html);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user