From: Pierre Joye Date: Sat, 18 Dec 2010 12:05:55 +0000 (+0000) Subject: - fix leak introduced by the null poisoning patch X-Git-Tag: php-5.3.6RC1~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96b613093060c834efb98c18e615c01d2d2fd640;p=php - fix leak introduced by the null poisoning patch --- diff --git a/ext/xsl/xsltprocessor.c b/ext/xsl/xsltprocessor.c index f111d64978..06d1964318 100644 --- a/ext/xsl/xsltprocessor.c +++ b/ext/xsl/xsltprocessor.c @@ -643,6 +643,7 @@ PHP_FUNCTION(xsl_xsltprocessor_transform_to_uri) ret = -1; if (newdocp) { if (strlen(uri) != uri_len) { + xmlFreeDoc(newdocp); RETURN_FALSE; } ret = xsltSaveResultToFilename(uri, newdocp, sheetp, 0);