Fixed use-after-free

This commit is contained in:
Dmitry Stogov 2019-06-28 10:43:56 +03:00
parent f365d0e00e
commit ba8033feb0

View File

@ -359,6 +359,7 @@ void shutdown_executor(void) /* {{{ */
if (ht) {
ZEND_ASSERT(GC_REFCOUNT(ht) == 1);
zend_array_destroy(ht);
ZEND_MAP_PTR_SET(op_array->static_variables_ptr, NULL);
}
}
} ZEND_HASH_FOREACH_END();
@ -390,6 +391,7 @@ void shutdown_executor(void) /* {{{ */
if (ht) {
ZEND_ASSERT(GC_REFCOUNT(ht) == 1);
zend_array_destroy(ht);
ZEND_MAP_PTR_SET(op_array->static_variables_ptr, NULL);
}
}
}