]> granicus.if.org Git - php/commitdiff
MFH: free node pointer using correct function
authorAntony Dovgal <tony2001@php.net>
Fri, 15 Sep 2006 07:44:20 +0000 (07:44 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 15 Sep 2006 07:44:20 +0000 (07:44 +0000)
fixes leak in ext/dom/tests/dom_create_element.phpt

ext/dom/element.c

index 48703c88678a58b7813385f28cbd67ec1a90d737..0ce275a0b8f8a67c5f7d999465a723133fe1ade6 100644 (file)
@@ -100,7 +100,7 @@ PHP_METHOD(domelement, __construct)
                }
                if (errorcode != 0) {
                        if (nodep != NULL) {
-                               xmlFree(nodep);
+                               xmlFreeNode(nodep);
                        }
                        php_dom_throw_error(errorcode, 1 TSRMLS_CC);
                        RETURN_FALSE;