From: Christian Stocker Date: Fri, 23 Aug 2002 15:19:16 +0000 (+0000) Subject: fix memleak in xslt->dump_mem() X-Git-Tag: RELEASE_0_91~290 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9278d9bf1afbecdbc84fafcc402b377de235bbb8;p=php fix memleak in xslt->dump_mem() --- diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 303363a455..c291fe904b 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -5211,7 +5211,8 @@ PHP_FUNCTION(domxml_xslt_dump_mem) RETURN_FALSE; } - RETURN_STRINGL(doc_txt_ptr, doc_txt_len, 1); + RETVAL_STRINGL(doc_txt_ptr, doc_txt_len, 1); + xmlFree(doc_txt_ptr); } /* }}} */