From 98ef183ed0efb3e470a6c82af1c7c642b8b52799 Mon Sep 17 00:00:00 2001 From: "shiguangqi2008@gmail.com" Date: Thu, 26 Apr 2018 18:16:30 +0800 Subject: Fix memory leak in zend_disable_class() --- Zend/zend_API.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Zend/zend_API.c') diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 60e2960afc..604dd47c70 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -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; } -- cgit v1.2.1