From: Dmitry Stogov Date: Mon, 15 Feb 2016 13:40:05 +0000 (+0300) Subject: Fixed possible memory leak X-Git-Tag: php-7.0.4RC1~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=388ab976b5624ab3968924a45b8383ed7161d89d;p=php Fixed possible memory leak --- 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();