1
0
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:
Daniel Veillard
2003-09-17 20:54:38 +00:00
parent 007d51eb73
commit a66b1d1a7d
2 changed files with 5 additions and 0 deletions

View File

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