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:
parent
af616a7386
commit
5addfebd06
@ -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()
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user