]> granicus.if.org Git - php/commitdiff
Drop a spurious zend_string_release
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 24 Aug 2020 15:30:31 +0000 (17:30 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 24 Aug 2020 15:30:31 +0000 (17:30 +0200)
This should have been dropped in the refactoring.

ext/standard/string.c

index c61d9911128d5d593a8dada0f14cbbc64c6fa2e3..b8572671fa2bfc0c2a88e44c0f280928c0c0d16b 100644 (file)
@@ -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);