]> granicus.if.org Git - php/commitdiff
- fix leak introduced by the null poisoning patch
authorPierre Joye <pajoye@php.net>
Sat, 18 Dec 2010 12:05:55 +0000 (12:05 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 18 Dec 2010 12:05:55 +0000 (12:05 +0000)
ext/xsl/xsltprocessor.c

index f111d64978e6d4550cf74998752bf40a3208a213..06d196431833dbd4d7f798217e3a78b2c7170852 100644 (file)
@@ -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);