mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.5'
* PHP-8.5: intl: Fix memory leak on error in locale_filter_matches()
This commit is contained in:
@@ -1287,6 +1287,7 @@ U_CFUNC PHP_FUNCTION(locale_filter_matches)
|
||||
/* canonicalize lang_tag */
|
||||
can_lang_tag = get_icu_value_internal( lang_tag , LOC_CANONICALIZE_TAG , &result , 0);
|
||||
if( result <=0) {
|
||||
zend_string_release_ex( can_loc_range, false );
|
||||
intl_error_set(NULL, status, "unable to canonicalize lang_tag");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user