Skip to content

Commit 233e33f

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: Fix memory leak in lookup_loc_range()
2 parents 2a15657 + cb0b2a2 commit 233e33f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/intl/locale/locale_methods.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,6 +1492,7 @@ static zend_string* lookup_loc_range(const char* loc_range, HashTable* hash_arr,
14921492
zend_string_release_ex(can_loc_range, 0);
14931493
}
14941494
if(result == 0) {
1495+
efree(cur_loc_range);
14951496
intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR, "lookup_loc_range: unable to canonicalize lang_tag" , 0);
14961497
LOOKUP_CLEAN_RETURN(NULL);
14971498
}

0 commit comments

Comments
 (0)