1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00

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;
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_remove_empty_includes();