From: Nikita Popov Date: Mon, 24 Aug 2020 15:30:31 +0000 (+0200) Subject: Drop a spurious zend_string_release X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c557c410af5bd039175e531769d8882e486bcd62;p=php Drop a spurious zend_string_release This should have been dropped in the refactoring. --- diff --git a/ext/standard/string.c b/ext/standard/string.c index c61d991112..b8572671fa 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -4651,7 +4651,6 @@ static zend_string *try_setlocale_str(zend_long cat, zend_string *loc) { if (len == 1 && *retval == 'C') { /* C locale is represented as NULL. */ BG(ctype_string) = NULL; - zend_string_release_ex(loc, 0); return ZSTR_CHAR('C'); } else if (len == ZSTR_LEN(loc) && !memcmp(ZSTR_VAL(loc), retval, len)) { BG(ctype_string) = zend_string_copy(loc);