]> granicus.if.org Git - php/commitdiff
Removed incorrect efree() (run_time_cache(s) are usually allocated in CG(arena)).
authorDmitry Stogov <dmitry@zend.com>
Tue, 28 Aug 2018 14:46:26 +0000 (17:46 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 28 Aug 2018 14:46:26 +0000 (17:46 +0300)
ext/opcache/zend_persist.c

index f023782d3d6f1714fa73acd94235127612d1fa34..1be770d99a36ed8be6e9cdc7d6d040058a39f115 100644 (file)
@@ -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)) {