mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix #72206 (xml_parser_create/xml_parser_free leaks mem)
This commit is contained in:
parent
3684d41172
commit
4a42fbbbc7
1 changed files with 4 additions and 3 deletions
|
@ -1569,9 +1569,10 @@ PHP_FUNCTION(xml_parser_free)
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = Z_RES(parser->index);
|
if (zend_list_delete(Z_RES(parser->index)) == FAILURE) {
|
||||||
ZVAL_UNDEF(&parser->index);
|
RETURN_FALSE;
|
||||||
zend_list_close(res);
|
}
|
||||||
|
|
||||||
RETURN_TRUE;
|
RETURN_TRUE;
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue