[PHP-CVS] com php-src: - Fixed bug #62064 (memory leak in the XML Writer module): ext/xmlwriter/php_xmlwriter.c
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
[PHP-CVS] com php-src: - Fixed bug #62064 (memory leak in the XML Writer module): ext/xmlwriter/php_xmlwriter.c
Commit:f5e2315660cbaa0278bb90c2eb5a71a7bdc30405 Author:Felipe Pena felipe...@gmail.com Fri, 18 May 2012 19:34:39 -0300 Parents: ebe16343a28d5a4cda89907611eda5870bd60456 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f5e2315660cbaa0278bb90c2eb5a71a7bdc30405 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 84be01d..0514b17 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -614,6 +614,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; @@ -624,6 +625,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