mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-432 Free some extra memory that was just allocated when the loading fails.
X-SVN-Rev: 3220
This commit is contained in:
parent
8519a562bd
commit
528b5b9040
1 changed files with 1 additions and 0 deletions
|
@ -529,6 +529,7 @@ UConverterSharedData* ucnv_data_unFlattenClone(UDataMemory *pData, UErrorCode *s
|
|||
if(data->impl->load != NULL) {
|
||||
data->impl->load(data, raw + source->structSize, status);
|
||||
if(U_FAILURE(*status)) {
|
||||
uprv_free(data->table);
|
||||
uprv_free(data);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue