com php-src: Removed incorrect efree() (run_time_cache( s) are usually allocated in CG(arena)).: ext/opcache/zend_persist.c

From: Date: Tue, 28 Aug 2018 14:46:26 +0000
Subject: com php-src: Removed incorrect efree() (run_time_cache( s) are usually allocated in CG(arena)).: ext/opcache/zend_persist.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102910@lists.php.net to get a copy of this message
Commit: 684354be728d7e48657aad48af458869075df051 Author: Dmitry Stogov <dmitry@zend.com> Tue, 28 Aug 2018 17:46:26 +0300 Parents: 8b4b41696eea3a57f22fa62a2ce21addde66183a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=684354be728d7e48657aad48af458869075df051 Log: Removed incorrect efree() (run_time_cache(s) are usually allocated in CG(arena)). Changed paths: M ext/opcache/zend_persist.c Diff: diff --git a/ext/opcache/zend_persist..c b/ext/opcache/zend_persist.c index f023782..1be770d 100644 --- a/ext/opcache/zend_persist.c +++ b/ext/opcache/zend_persist.c @@ -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)) {

« previous php.cvs (#102910) next »