From: Nikita Popov Date: Thu, 27 Jun 2019 14:01:13 +0000 (+0200) Subject: Free ZTS lock in opcache X-Git-Tag: php-7.4.0alpha3~149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a78adce5cb766a3e13328bd0d79d6ac599f3f8bc;p=php Free ZTS lock in opcache For some reason this only shows up as a leak when using phpdbg. --- 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 }