From 524f5245c55223d36d1166554ca894fa77ea2dd1 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 8 May 2018 17:30:15 +0300 Subject: Avoid useless checks, using zend_string_efree(), in cases where the string is known to be a temporary allocated zend_string. --- ext/reflection/php_reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/reflection/php_reflection.c') diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 391183addf..87ffeba666 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1130,7 +1130,7 @@ static void reflection_extension_factory(zval *object, const char *name_str) lcname = zend_string_alloc(name_len, 0); zend_str_tolower_copy(ZSTR_VAL(lcname), name_str, name_len); module = zend_hash_find_ptr(&module_registry, lcname); - zend_string_free(lcname); + zend_string_efree(lcname); if (!module) { return; } -- cgit v1.2.1