Skip to content

Commit fdb7fc6

Browse files
committed
Fixed double mutex unlock
1 parent dcccdc4 commit fdb7fc6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4255,9 +4255,10 @@ static int accel_finish_startup(void)
42554255

42564256
orig_report_memleaks = PG(report_memleaks);
42574257
PG(report_memleaks) = 0;
4258-
php_request_shutdown(NULL);
4258+
php_request_shutdown(NULL); /* calls zend_shared_alloc_unlock(); */
42594259
PG(report_memleaks) = orig_report_memleaks;
42604260
} else {
4261+
zend_shared_alloc_unlock();
42614262
ret = FAILURE;
42624263
}
42634264
#ifdef ZEND_SIGNALS
@@ -4274,8 +4275,6 @@ static int accel_finish_startup(void)
42744275
sapi_module.ub_write = orig_ub_write;
42754276
sapi_module.flush = orig_flush;
42764277

4277-
zend_shared_alloc_unlock();
4278-
42794278
sapi_activate();
42804279

42814280
return ret;

0 commit comments

Comments
 (0)