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

@ -1,3 +1,7 @@
Wed Sep 17 22:53:32 CEST 2003 Daniel Veillard <daniel@veillard.com>
* parserInternals.c: avoid a leak with previous patch
Wed Sep 17 22:06:11 CEST 2003 Daniel Veillard <daniel@veillard.com>
* python/libxml.c: use stderr and not stdout for default errors

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;