Skip to content

Commit 46a884b

Browse files
committed
Don't leak include_path if it cannot be interned
1 parent 24969b7 commit 46a884b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,7 @@ zend_string *accel_make_persistent_key(zend_string *str)
12291229
zend_shared_alloc_lock();
12301230
str = accel_new_interned_string(zend_string_copy(ZCG(include_path)));
12311231
if (str == ZCG(include_path)) {
1232+
zend_string_release(str);
12321233
str = NULL;
12331234
}
12341235
zend_shared_alloc_unlock();

0 commit comments

Comments
 (0)