summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-02-15 16:40:05 +0300
committerDmitry Stogov <dmitry@zend.com>2016-02-15 16:40:05 +0300
commit388ab976b5624ab3968924a45b8383ed7161d89d (patch)
tree9a13903c274792cfe27482053f06a2abcb392820
parent5c4b4d11bee6fb82c56cf6882be6db69fb896723 (diff)
downloadphp-git-388ab976b5624ab3968924a45b8383ed7161d89d.tar.gz
Fixed possible memory leak
-rw-r--r--ext/opcache/ZendAccelerator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index f0dc770109..9e606f0ae5 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();