diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-05-28 14:17:46 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-05-28 14:17:46 +0000 |
commit | 6544f8d47e5e9a9c2772300ef16d47e6e54806e9 (patch) | |
tree | 99ea0357e0a88ecf57a9406dcc653fbf9897acf2 /ext/xsl/xsltprocessor.c | |
parent | e389e255e6b85187a6cde4778d85a9d93ca3da72 (diff) | |
download | php-git-6544f8d47e5e9a9c2772300ef16d47e6e54806e9.tar.gz |
Fixed memory leak on error.
Diffstat (limited to 'ext/xsl/xsltprocessor.c')
-rw-r--r-- | ext/xsl/xsltprocessor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/xsl/xsltprocessor.c b/ext/xsl/xsltprocessor.c index 2d99d18ac3..a331df7df6 100644 --- a/ext/xsl/xsltprocessor.c +++ b/ext/xsl/xsltprocessor.c @@ -106,6 +106,7 @@ static char **php_xsl_xslt_make_params(HashTable *parht, int xpath_params TSRMLS if (zend_hash_get_current_key(parht, &string_key, &num_key, 1) != HASH_KEY_IS_STRING) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid argument or parameter array"); + efree(params); return NULL; } else { if (Z_TYPE_PP(value) != IS_STRING) { |