php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #81419
Patch fix_memleak.patch revision 2021-09-06 08:23 UTC by dinghao dot liu at zju dot edu dot cn

Patch fix_memleak.patch for opcache Bug #81419

Patch version 2021-09-06 08:23 UTC

Return 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();
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC