Skip to content

Commit

Permalink
Removed incorrect efree() (run_time_cache(s) are usually allocated in…
Browse files Browse the repository at this point in the history
… CG(arena)).
  • Loading branch information
dstogov committed Aug 28, 2018
1 parent 8b4b416 commit 684354b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ext/opcache/zend_persist.c
Expand Up @@ -505,11 +505,7 @@ static void zend_persist_op_array_ex(zend_op_array *op_array, zend_persistent_sc

efree(op_array->opcodes);
op_array->opcodes = new_opcodes;

if (op_array->run_time_cache) {
efree(op_array->run_time_cache);
op_array->run_time_cache = NULL;
}
op_array->run_time_cache = NULL;
}

if (op_array->function_name && !IS_ACCEL_INTERNED(op_array->function_name)) {
Expand Down

0 comments on commit 684354b

Please sign in to comment.