summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-02-15 16:40:21 +0300
committerDmitry Stogov <dmitry@zend.com>2016-02-15 16:40:21 +0300
commitd0b9ef27c57d550e5ca7fd8cc3bc4250174245fc (patch)
tree8d67013a76c4016528801b1b0a073bfa5359f2d6
parent052651b06afad76a4e50185ebdf116b8d5021777 (diff)
parent388ab976b5624ab3968924a45b8383ed7161d89d (diff)
downloadphp-git-d0b9ef27c57d550e5ca7fd8cc3bc4250174245fc.tar.gz
Merge branch 'PHP-7.0'
* PHP-7.0: 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 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();