diff options
author | Mike Hommey <glandium@debian.org> | 2006-10-26 11:17:37 +0200 |
---|---|---|
committer | Mike Hommey <glandium@debian.org> | 2006-10-26 11:17:37 +0200 |
commit | 968041a8b2ec86c39b5074024ce97d136ecd9a95 (patch) | |
tree | 6971d7bce63213fd376b0e66311d0c67a8da4d64 /parserInternals.c | |
parent | a7e9d3f37d5e9fba4b9acaa43e7c12b6d9a669ae (diff) | |
download | libxml2-968041a8b2ec86c39b5074024ce97d136ecd9a95.tar.gz |
Load /tmp/libxml2-2.6.27 intoupstream/2.6.27.dfsg
libxml2/branches/upstream/current.
Diffstat (limited to 'parserInternals.c')
-rw-r--r-- | parserInternals.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/parserInternals.c b/parserInternals.c index 5706299..f4da58d 100644 --- a/parserInternals.c +++ b/parserInternals.c @@ -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; |