Browse Source

Fixed possible memory leak

PHP-7.0.4
Dmitry Stogov 11 years ago
parent
commit
388ab976b5
  1. 1
      ext/opcache/ZendAccelerator.c

1
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();

Loading…
Cancel
Save