com php-src: Fixed possible memory leak: ext/opcache/ZendAccelerator.c

From: Date: Mon, 15 Feb 2016 13:40:05 +0000
Subject: com php-src: Fixed possible memory leak: ext/opcache/ZendAccelerator.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91056@lists.php.net to get a copy of this message
Commit: 388ab976b5624ab3968924a45b8383ed7161d89d Author: Dmitry Stogov <dmitry@zend.com> Mon, 15 Feb 2016 16:40:05 +0300 Parents: 5c4b4d11bee6fb82c56cf6882be6db69fb896723 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=388ab976b5624ab3968924a45b8383ed7161d89d Log: Fixed possible memory leak Changed paths: M ext/opcache/ZendAccelerator.c Diff: diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index f0dc770..9e606f0 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();

« previous php.cvs (#91056) next »