diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-05-08 17:30:15 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-05-08 17:30:15 +0300 |
commit | 524f5245c55223d36d1166554ca894fa77ea2dd1 (patch) | |
tree | aa7e6e9fa7f37afe6cd4b9a3c8ce8d919cd2f15d /ext/reflection/php_reflection.c | |
parent | 9565075cbd57f226c77745f5e7c915635680784c (diff) | |
download | php-git-524f5245c55223d36d1166554ca894fa77ea2dd1.tar.gz |
Avoid useless checks, using zend_string_efree(), in cases where the string is known to be a temporary allocated zend_string.
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |