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 /Zend/zend_inheritance.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 'Zend/zend_inheritance.c')
-rw-r--r-- | Zend/zend_inheritance.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c index 46a674ba90..8af706a1d0 100644 --- a/Zend/zend_inheritance.c +++ b/Zend/zend_inheritance.c @@ -619,8 +619,8 @@ static void do_inheritance_check_on_method(zend_function *child, zend_function * error_verb = "should"; } zend_error(error_level, "Declaration of %s %s be compatible with %s", ZSTR_VAL(child_prototype), error_verb, ZSTR_VAL(method_prototype)); - zend_string_free(child_prototype); - zend_string_free(method_prototype); + zend_string_efree(child_prototype); + zend_string_efree(method_prototype); } } /* }}} */ |