diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-27 16:01:13 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-28 09:18:14 +0200 |
commit | a78adce5cb766a3e13328bd0d79d6ac599f3f8bc (patch) | |
tree | 06a15be707d17966c26b353ce70f5249bf0d748c /ext/opcache/zend_shared_alloc.c | |
parent | 8c4d199851fb84789b6c23a755e5b03e2f653e74 (diff) | |
download | php-git-a78adce5cb766a3e13328bd0d79d6ac599f3f8bc.tar.gz |
Free ZTS lock in opcache
For some reason this only shows up as a leak when using phpdbg.
Diffstat (limited to 'ext/opcache/zend_shared_alloc.c')
-rw-r--r-- | ext/opcache/zend_shared_alloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 } |