mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
fix #72206 (xml_parser_create/xml_parser_free leaks mem)
This commit is contained in:
parent
1524e00ccc
commit
b165114013
2
NEWS
2
NEWS
@ -17,6 +17,8 @@ PHP NEWS
|
||||
. Fixed bug #72193 (dns_get_record returns array containing elements of
|
||||
type 'unknown'). (Laruence)
|
||||
|
||||
- XML:
|
||||
. Fixed #72206 (xml_parser_create/xml_parser_free leaks mem). (Joe)
|
||||
|
||||
26 May 2016 PHP 7.0.7
|
||||
|
||||
|
@ -1573,9 +1573,10 @@ PHP_FUNCTION(xml_parser_free)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
res = Z_RES(parser->index);
|
||||
ZVAL_UNDEF(&parser->index);
|
||||
zend_list_close(res);
|
||||
if (zend_list_delete(Z_RES(parser->index)) == FAILURE) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
RETURN_TRUE;
|
||||
}
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user