mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix memory leak in lookup_loc_range()
This commit is contained in:
commit
233e33fe68
1 changed files with 1 additions and 0 deletions
|
@ -1492,6 +1492,7 @@ static zend_string* lookup_loc_range(const char* loc_range, HashTable* hash_arr,
|
||||||
zend_string_release_ex(can_loc_range, 0);
|
zend_string_release_ex(can_loc_range, 0);
|
||||||
}
|
}
|
||||||
if(result == 0) {
|
if(result == 0) {
|
||||||
|
efree(cur_loc_range);
|
||||||
intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR, "lookup_loc_range: unable to canonicalize lang_tag" , 0);
|
intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR, "lookup_loc_range: unable to canonicalize lang_tag" , 0);
|
||||||
LOOKUP_CLEAN_RETURN(NULL);
|
LOOKUP_CLEAN_RETURN(NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue