Fix memory leak in zend_disable_class()

This commit is contained in:
shiguangqi2008@gmail.com 2018-04-26 18:16:30 +08:00 committed by Nikita Popov
parent 127273327b
commit 98ef183ed0

View File

@ -2810,6 +2810,7 @@ ZEND_API int zend_disable_class(char *class_name, size_t class_name_length) /* {
key = zend_string_alloc(class_name_length, 0);
zend_str_tolower_copy(ZSTR_VAL(key), class_name, class_name_length);
disabled_class = zend_hash_find_ptr(CG(class_table), key);
zend_string_release(key);
if (!disabled_class) {
return FAILURE;
}