From 27d3e9435bb2b9d78c6060842ff75599dc1b4d61 Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Wed, 14 Aug 2013 20:17:38 +0000 Subject: [PATCH] ICU-10274 Close resource bundle after use X-SVN-Rev: 34042 --- icu4c/source/i18n/tmutfmt.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.40.0