ICU-432 Free some extra memory that was just allocated when the loading fails.

X-SVN-Rev: 3220
This commit is contained in:
George Rhoten 2000-12-14 00:29:46 +00:00
parent 8519a562bd
commit 528b5b9040

View file

@ -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;
}