| Patch fix_memleak.patch for opcache Bug #81419Patch version 2021-09-06 08:23 UTCReturn to Bug #81419 |
Download this patch Patch Revisions:
 Developer: dinghao.liu@zju.edu.cn
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 73be350914..06b65663bb 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -4686,7 +4686,8 @@ static int accel_preload(const char *config, zend_bool in_child)
 
                if (preload_optimize(script) != SUCCESS) {
                        zend_accel_error(ACCEL_LOG_FATAL, "Optimization error during preloading!");
-                       return FAILURE;
+                       ret = FAILURE;
+                       goto finish;
                }
 
                zend_shared_alloc_init_xlat_table();
 |