From b56d67be430677e03b00a3462d54de386f56d1ed Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 18 Nov 2003 23:27:49 +0000 Subject: [PATCH] ICU-3259 Fix a memory leak. X-SVN-Rev: 13746 --- icu4c/source/i18n/ulocdata.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/icu4c/source/i18n/ulocdata.c b/icu4c/source/i18n/ulocdata.c index a0b7faa11d4..0f0748931e4 100644 --- a/icu4c/source/i18n/ulocdata.c +++ b/icu4c/source/i18n/ulocdata.c @@ -91,6 +91,7 @@ ulocdata_getPaperSize(const char* localeID, int32_t *height, int32_t *width, UEr if(len < 2){ *status = U_INTERNAL_PROGRAM_ERROR; ures_close(bundle); + ures_close(paperSizeBundle); return; }else{ *height = paperSize[0]; @@ -99,5 +100,6 @@ ulocdata_getPaperSize(const char* localeID, int32_t *height, int32_t *width, UEr } ures_close(bundle); + ures_close(paperSizeBundle); }