Skip to content

Commit a78adce

Browse files
committed
Free ZTS lock in opcache
For some reason this only shows up as a leak when using phpdbg.
1 parent 8c4d199 commit a78adce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/opcache/zend_shared_alloc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ void zend_shared_alloc_shutdown(void)
285285
g_shared_alloc_handler = NULL;
286286
#ifndef ZEND_WIN32
287287
close(lock_file);
288+
289+
# ifdef ZTS
290+
tsrm_mutex_free(zts_lock);
291+
# endif
288292
#endif
289293
}
290294

0 commit comments

Comments
 (0)