diff options
author | Christian Stocker <chregu@php.net> | 2004-05-28 13:04:19 +0000 |
---|---|---|
committer | Christian Stocker <chregu@php.net> | 2004-05-28 13:04:19 +0000 |
commit | c59471cd1f15a9120612fc7bc91893ecabe28aa3 (patch) | |
tree | 2b26e810572076885fe58c782a86d8dd49e9985b /ext/xsl/xsltprocessor.c | |
parent | 2e3b9ec2783e67f5df165b03fff7333b6845e4a2 (diff) | |
download | php-git-c59471cd1f15a9120612fc7bc91893ecabe28aa3.tar.gz |
fix memleak in php callbacks
Diffstat (limited to 'ext/xsl/xsltprocessor.c')
-rw-r--r-- | ext/xsl/xsltprocessor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/xsl/xsltprocessor.c b/ext/xsl/xsltprocessor.c index 10c7e668a3..2d99d18ac3 100644 --- a/ext/xsl/xsltprocessor.c +++ b/ext/xsl/xsltprocessor.c @@ -246,7 +246,6 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t /*fci.function_handler_cache = &function_ptr;*/ if (!zend_make_callable(&handler, &callable TSRMLS_CC)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call handler %s()", callable); - efree(callable); } else { result = zend_call_function(&fci, NULL TSRMLS_CC); @@ -273,6 +272,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t zval_ptr_dtor(&retval); } } + efree(callable); zval_dtor(&handler); for (i = 0; i < nargs - 1; i++) { zval_ptr_dtor(&args[i]); |