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/date/php_date.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/date/php_date.c')
| -rw-r--r-- | ext/date/php_date.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index ed92dd5f0d..be1df2d81c 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1738,7 +1738,7 @@ PHPAPI void php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gmt) buf = zend_string_truncate(buf, real_len, 0); RETURN_NEW_STR(buf); } - zend_string_free(buf); + zend_string_efree(buf); RETURN_FALSE; } /* }}} */ |
