diff options
-rw-r--r-- | ext/opcache/ZendAccelerator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 140bc1c2c9..d0693ba136 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -962,6 +962,7 @@ char *accel_make_persistent_key(const char *path, int path_length, int *key_len) zend_shared_alloc_lock(); str = accel_new_interned_string(zend_string_copy(cwd_str)); if (str == cwd_str) { + zend_string_release(str); str = NULL; } zend_shared_alloc_unlock(); |