Skip to content

Commit 98ef183

Browse files
shiguangqinikic
authored andcommitted
Fix memory leak in zend_disable_class()
1 parent 1272733 commit 98ef183

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2810,6 +2810,7 @@ ZEND_API int zend_disable_class(char *class_name, size_t class_name_length) /* {
28102810
key = zend_string_alloc(class_name_length, 0);
28112811
zend_str_tolower_copy(ZSTR_VAL(key), class_name, class_name_length);
28122812
disabled_class = zend_hash_find_ptr(CG(class_table), key);
2813+
zend_string_release(key);
28132814
if (!disabled_class) {
28142815
return FAILURE;
28152816
}

0 commit comments

Comments
 (0)