diff options
author | Nuno Lopes <nlopess@php.net> | 2006-09-16 18:18:55 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2006-09-16 18:18:55 +0000 |
commit | 557b583434a4d83e494d9ae5cb926954a419c8b7 (patch) | |
tree | 0ab5d0e2ec35c2ddeb68bd2d43f767c12c15dc63 /ext/xmlwriter | |
parent | c7101ba6d2167555637ffb1f5009340a04c2334d (diff) | |
download | php-git-557b583434a4d83e494d9ae5cb926954a419c8b7.tar.gz |
plug leaks that in the previous patch
Diffstat (limited to 'ext/xmlwriter')
-rw-r--r-- | ext/xmlwriter/php_xmlwriter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index 6baa512046..ddb35df8e0 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; |