mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
avoid a leak with previous patch Daniel
* parserInternals.c: avoid a leak with previous patch Daniel
This commit is contained in:
@ -2168,6 +2168,7 @@ xmlNewInputFromFile(xmlParserCtxtPtr ctxt, const char *filename) {
|
||||
}
|
||||
|
||||
inputStream->filename = (char *) xmlCanonicPath((const xmlChar *) URI);
|
||||
if (URI != NULL) xmlFree((char *) URI);
|
||||
inputStream->directory = directory;
|
||||
inputStream->buf = buf;
|
||||
|
||||
|
Reference in New Issue
Block a user