pajoye                                   Sat, 18 Dec 2010 12:05:55 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=306427

Log:
- fix leak introduced by the null poisoning patch

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/xsl/xsltprocessor.c

Modified: php/php-src/branches/PHP_5_3/ext/xsl/xsltprocessor.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/xsl/xsltprocessor.c        2010-12-18 
11:22:11 UTC (rev 306426)
+++ php/php-src/branches/PHP_5_3/ext/xsl/xsltprocessor.c        2010-12-18 
12:05:55 UTC (rev 306427)
@@ -643,6 +643,7 @@
        ret = -1;
        if (newdocp) {
                if (strlen(uri) != uri_len) {
+                       xmlFreeDoc(newdocp);
                        RETURN_FALSE;
                }
                ret = xsltSaveResultToFilename(uri, newdocp, sheetp, 0);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to