Commit: 6d928fd26d27e00da4a6b812b231ca526ddecaac Author: Felipe Pena <felipe...@gmail.com> Fri, 18 May 2012 19:23:29 -0300 Parents: 72a9b595ca3e1bc07cf1aa51c91dcbc973f89d10 Branches: PHP-5.3 PHP-5.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6d928fd26d27e00da4a6b812b231ca526ddecaac Log: - Fixed bug #62064 (memory leak in the XML Writer module) Bugs: https://bugs.php.net/62064 Changed paths: M ext/xmlwriter/php_xmlwriter.c Diff: diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index 4ea76da..588ca4b 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; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php