Skip to content

Commit bb3559b

Browse files
committed
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4: intl: Fix memory leak on error in locale_filter_matches()
2 parents f67f79c + 7c79a91 commit bb3559b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/intl/locale/locale_methods.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,7 @@ U_CFUNC PHP_FUNCTION(locale_filter_matches)
12871287
/* canonicalize lang_tag */
12881288
can_lang_tag = get_icu_value_internal( lang_tag , LOC_CANONICALIZE_TAG , &result , 0);
12891289
if( result <=0) {
1290+
zend_string_release_ex( can_loc_range, false );
12901291
intl_error_set(NULL, status, "unable to canonicalize lang_tag");
12911292
RETURN_FALSE;
12921293
}

0 commit comments

Comments
 (0)