From 93ab4f8add089497fc8da54b0824d63dc195bc51 Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Tue, 13 Aug 2013 23:32:48 +0000 Subject: [PATCH] ICU-7912 Fix memory leak in cintltst TestUFormattable X-SVN-Rev: 34040 --- icu4c/source/test/cintltst/cnumtst.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icu4c/source/test/cintltst/cnumtst.c b/icu4c/source/test/cintltst/cnumtst.c index 0b1806caa46..37b5bf601e5 100644 --- a/icu4c/source/test/cintltst/cnumtst.c +++ b/icu4c/source/test/cintltst/cnumtst.c @@ -2188,12 +2188,13 @@ static void TestUFormattable(void) { UFormattable *ufmt = ufmt_open(&status); unum_parseToUFormattable(unum, ufmt, str, -1, NULL, &status); if (ufmt_isNumeric(ufmt)) { - result = ufmt_getLong(ufmt, &status); /* == 123 */ + result = ufmt_getLong(ufmt, &status); /* == 123 */ } /* else { ... } */ ufmt_close(ufmt); //! [unum_parseToUFormattable] assertTrue("result == 123", (result == 123)); } + unum_close(unum); } // test with explicitly created ufmt_open { -- 2.40.0