From: Travis Keep Date: Wed, 3 Sep 2014 22:41:51 +0000 (+0000) Subject: ICU-11237 Fixed memory leak. X-Git-Tag: milestone-59-0-1~1636 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff421e317ac6436a68590d7a2e08a41b9db0ad24;p=icu ICU-11237 Fixed memory leak. X-SVN-Rev: 36339 --- diff --git a/icu4c/source/i18n/region.cpp b/icu4c/source/i18n/region.cpp index bb4e777463e..21123a16322 100644 --- a/icu4c/source/i18n/region.cpp +++ b/icu4c/source/i18n/region.cpp @@ -276,6 +276,7 @@ void Region::loadRegionData(UErrorCode &status) { UResourceBundle *mapping = ures_getNextResource(territoryContainment.getAlias(),NULL,&status); const char *parent = ures_getKey(mapping); if (uprv_strcmp(parent, "containedGroupings") == 0 || uprv_strcmp(parent, "deprecated") == 0) { + ures_close(mapping); continue; // handle new pseudo-parent types added in ICU data per cldrbug 7808; for now just skip. // #11232 is to do something useful with these. }