]> granicus.if.org Git - php/commitdiff
Free ZTS lock in opcache
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 27 Jun 2019 14:01:13 +0000 (16:01 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 28 Jun 2019 07:18:14 +0000 (09:18 +0200)
For some reason this only shows up as a leak when using phpdbg.

ext/opcache/zend_shared_alloc.c

index e4e44c35be02a90282b56b24310bac5c278ea0c1..8e75cda3330a879641cff973179889099f94b617 100644 (file)
@@ -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
 }