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/xmlreader/php_xmlreader.c | |
parent | c7101ba6d2167555637ffb1f5009340a04c2334d (diff) | |
download | php-git-557b583434a4d83e494d9ae5cb926954a419c8b7.tar.gz |
plug leaks that in the previous patch
Diffstat (limited to 'ext/xmlreader/php_xmlreader.c')
-rw-r--r-- | ext/xmlreader/php_xmlreader.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/xmlreader/php_xmlreader.c b/ext/xmlreader/php_xmlreader.c index d5eca3d167..fec0fa70a1 100644 --- a/ext/xmlreader/php_xmlreader.c +++ b/ext/xmlreader/php_xmlreader.c @@ -261,6 +261,7 @@ char *_xmlreader_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; |