summaryrefslogtreecommitdiff
path: root/ext/xmlwriter
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2006-09-16 18:18:55 (GMT)
committerNuno Lopes <nlopess@php.net>2006-09-16 18:18:55 (GMT)
commit557b583434a4d83e494d9ae5cb926954a419c8b7 (patch)
tree0ab5d0e2ec35c2ddeb68bd2d43f767c12c15dc63 /ext/xmlwriter
parentc7101ba6d2167555637ffb1f5009340a04c2334d (diff)
downloadphp-557b583434a4d83e494d9ae5cb926954a419c8b7.tar.gz
plug leaks that in the previous patch
Diffstat (limited to 'ext/xmlwriter')
-rw-r--r--ext/xmlwriter/php_xmlwriter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c
index 6baa512..ddb35df 100644
--- a/ext/xmlwriter/php_xmlwriter.c
+++ b/ext/xmlwriter/php_xmlwriter.c
@@ -273,6 +273,7 @@ char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, int reso
if ((uri->scheme == NULL || isFileUri)) {
if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) {
+ xmlFreeURI(uri);
return NULL;
}
file_dest = resolved_path;