1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00

free node pointer using correct function

fixes leak in ext/dom/tests/dom_create_element.phpt
This commit is contained in:
Antony Dovgal
2006-09-15 07:43:59 +00:00
parent e264e460a4
commit 4bbeaa70fa
+1 -1
View 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;