From: Ilia Alshanetsky Date: Fri, 28 May 2004 14:17:46 +0000 (+0000) Subject: Fixed memory leak on error. X-Git-Tag: php-5.0.0RC3RC2~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6544f8d47e5e9a9c2772300ef16d47e6e54806e9;p=php Fixed memory leak on error. --- 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) {