1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-10 08:58:16 +03:00

applied patch from Marius Konitzer to avoid leaking in

* parserInternals.c: applied patch from Marius Konitzer to avoid
  leaking in xmlNewInputFromFile() in case of HTTP redirection
Daniel
This commit is contained in:
Daniel Veillard 2006-10-17 20:32:22 +00:00
parent af616a7386
commit 5addfebd06
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Tue Oct 17 22:32:42 CEST 2006 Daniel Veillard <daniel@veillard.com>
* parserInternals.c: applied patch from Marius Konitzer to avoid
leaking in xmlNewInputFromFile() in case of HTTP redirection
Tue Oct 17 22:19:02 CEST 2006 Daniel Veillard <daniel@veillard.com>
* HTMLparser.c: fix one problem found in htmlCtxtUseOptions()

View File

@ -1473,6 +1473,7 @@ xmlNewInputFromFile(xmlParserCtxtPtr ctxt, const char *filename) {
else
URI = xmlStrdup((xmlChar *) inputStream->filename);
directory = xmlParserGetDirectory((const char *) URI);
if (inputStream->filename != NULL) xmlFree((char *)inputStream->filename);
inputStream->filename = (char *) xmlCanonicPath((const xmlChar *) URI);
if (URI != NULL) xmlFree((char *) URI);
inputStream->directory = directory;