From a78adce5cb766a3e13328bd0d79d6ac599f3f8bc Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 27 Jun 2019 16:01:13 +0200 Subject: [PATCH] Free ZTS lock in opcache For some reason this only shows up as a leak when using phpdbg. --- ext/opcache/zend_shared_alloc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c index e4e44c35be..8e75cda333 100644 --- a/ext/opcache/zend_shared_alloc.c +++ b/ext/opcache/zend_shared_alloc.c @@ -285,6 +285,10 @@ void zend_shared_alloc_shutdown(void) g_shared_alloc_handler = NULL; #ifndef ZEND_WIN32 close(lock_file); + +# ifdef ZTS + tsrm_mutex_free(zts_lock); +# endif #endif } -- 2.50.1