Skip to content

Commit e9e2418

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: intl: Fix memory leak in IntlChar::getFC_NFKC_Closure()
2 parents 1d8cb11 + 63c3394 commit e9e2418

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/intl/uchar/uchar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ IC_METHOD(getFC_NFKC_Closure) {
541541

542542
error = U_ZERO_ERROR;
543543
u8str = intl_convert_utf16_to_utf8(closure, closure_len, &error);
544-
INTL_CHECK_STATUS(error, "Failed converting output to UTF8");
545544
efree(closure);
545+
INTL_CHECK_STATUS(error, "Failed converting output to UTF8");
546546
RETVAL_NEW_STR(u8str);
547547
}
548548
/* }}} */

0 commit comments

Comments
 (0)