]> granicus.if.org Git - php/commitdiff
Fixed possible memory leak
authorDmitry Stogov <dmitry@zend.com>
Mon, 15 Feb 2016 13:40:05 +0000 (16:40 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 15 Feb 2016 13:40:05 +0000 (16:40 +0300)
ext/opcache/ZendAccelerator.c

index f0dc77010984efd882e35df320f62ca8d0c42825..9e606f0ae5729e3071981afb247d3e262a261dfb 100644 (file)
@@ -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();