Skip to content

Commit

Permalink
Fixed double-free
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Oct 29, 2018
1 parent 2f697ef commit e806cb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/opcache/ZendAccelerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit e806cb7

Please sign in to comment.