From: Michael Ow Date: Wed, 14 Aug 2013 20:17:38 +0000 (+0000) Subject: ICU-10274 Close resource bundle after use X-Git-Tag: milestone-59-0-1~2712 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27d3e9435bb2b9d78c6060842ff75599dc1b4d61;p=icu ICU-10274 Close resource bundle after use X-SVN-Rev: 34042 --- diff --git a/icu4c/source/i18n/tmutfmt.cpp b/icu4c/source/i18n/tmutfmt.cpp index 98fe89a74c6..c8725316872 100644 --- a/icu4c/source/i18n/tmutfmt.cpp +++ b/icu4c/source/i18n/tmutfmt.cpp @@ -639,9 +639,11 @@ TimeUnitFormat::loadNumericDurationFormat(const char *pattern, UErrorCode& statu return NULL; } if (U_FAILURE(status)) { + ures_close(rb); delete result; return NULL; } + ures_close(rb); result->setTimeZone(*TimeZone::getGMT()); return result; }