Skip to content

Commit c557c41

Browse files
committed
Drop a spurious zend_string_release
This should have been dropped in the refactoring.
1 parent 9feb988 commit c557c41

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/standard/string.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4651,7 +4651,6 @@ static zend_string *try_setlocale_str(zend_long cat, zend_string *loc) {
46514651
if (len == 1 && *retval == 'C') {
46524652
/* C locale is represented as NULL. */
46534653
BG(ctype_string) = NULL;
4654-
zend_string_release_ex(loc, 0);
46554654
return ZSTR_CHAR('C');
46564655
} else if (len == ZSTR_LEN(loc) && !memcmp(ZSTR_VAL(loc), retval, len)) {
46574656
BG(ctype_string) = zend_string_copy(loc);

0 commit comments

Comments
 (0)