summaryrefslogtreecommitdiff
path: root/ext/opcache/zend_shared_alloc.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-27 16:01:13 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-06-28 09:18:14 +0200
commita78adce5cb766a3e13328bd0d79d6ac599f3f8bc (patch)
tree06a15be707d17966c26b353ce70f5249bf0d748c /ext/opcache/zend_shared_alloc.c
parent8c4d199851fb84789b6c23a755e5b03e2f653e74 (diff)
downloadphp-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.c4
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
}