Fixed double-free

This commit is contained in:
Dmitry Stogov 2018-10-29 22:32:15 +03:00
parent 2f697ef8af
commit e806cb732a

View file

@ -3712,6 +3712,10 @@ static int accel_preload(const char *config)
zend_string *filename; zend_string *filename;
int i; int i;
/* Release stored values to avoid dangling pointers */
zend_hash_graceful_reverse_destroy(&EG(symbol_table));
zend_hash_init(&EG(symbol_table), 0, NULL, ZVAL_PTR_DTOR, 0);
preload_link(); preload_link();
preload_remove_empty_includes(); preload_remove_empty_includes();