diff options
author | Felipe Pena <felipensp@gmail.com> | 2012-05-18 19:23:29 -0300 |
---|---|---|
committer | Felipe Pena <felipensp@gmail.com> | 2012-05-18 19:23:29 -0300 |
commit | 6d928fd26d27e00da4a6b812b231ca526ddecaac (patch) | |
tree | 666782d4b694a98e54985afbe14105ce185e0b59 /ext/xmlwriter | |
parent | 72a9b595ca3e1bc07cf1aa51c91dcbc973f89d10 (diff) | |
download | php-git-6d928fd26d27e00da4a6b812b231ca526ddecaac.tar.gz |
- Fixed bug #62064 (memory leak in the XML Writer module)
Diffstat (limited to 'ext/xmlwriter')
-rw-r--r-- | ext/xmlwriter/php_xmlwriter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index 4ea76dad51..588ca4bf3a 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -616,6 +616,7 @@ static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, i /* absolute file uris - libxml only supports localhost or empty host */ if (strncasecmp(source, "file:///", 8) == 0) { if (source[sizeof("file:///") - 1] == '\0') { + xmlFreeURI(uri); return NULL; } isFileUri = 1; @@ -626,6 +627,7 @@ static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, i #endif } else if (strncasecmp(source, "file://localhost/",17) == 0) { if (source[sizeof("file://localhost/") - 1] == '\0') { + xmlFreeURI(uri); return NULL; } |