mirror of
https://github.com/php/php-src.git
synced 2025-01-07 19:44:02 +08:00
Free memory if destructor wasn't called
This commit is contained in:
parent
816b196973
commit
48deb1cd94
@ -931,6 +931,11 @@ static void spl_RecursiveIteratorIterator_free_storage(zend_object *_object)
|
||||
{
|
||||
spl_recursive_it_object *object = spl_recursive_it_from_obj(_object);
|
||||
|
||||
if (object->iterators) {
|
||||
efree(object->iterators);
|
||||
object->iterators = NULL;
|
||||
}
|
||||
|
||||
zend_object_std_dtor(&object->std);
|
||||
smart_str_free(&object->prefix[0]);
|
||||
smart_str_free(&object->prefix[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user