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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user