From 99ce96c3835955f9f8a8b49f8a15b92a63e98b3c Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Tue, 26 Feb 2013 16:57:42 +0000 Subject: [PATCH] ICU-9979 Fix some memory leaks in cintltst X-SVN-Rev: 33332 --- icu4c/source/test/cintltst/citertst.c | 2 ++ icu4c/source/test/cintltst/cmsccoll.c | 1 + 2 files changed, 3 insertions(+) diff --git a/icu4c/source/test/cintltst/citertst.c b/icu4c/source/test/cintltst/citertst.c index 7dd77fba9cf..f28e73a6555 100644 --- a/icu4c/source/test/cintltst/citertst.c +++ b/icu4c/source/test/cintltst/citertst.c @@ -1830,6 +1830,7 @@ static void TestCEValidity() log_err("%s collator, ucol_tok_parseNextToken failed with status %s\n", loc, u_errorName(status)); } uprv_free(src.source); + uprv_free(src.reorderCodes); } ucol_close(coll); @@ -2035,6 +2036,7 @@ static void TestSortKeyValidity(void) log_err("%s collator, ucol_tok_parseNextToken failed with status %s\n", locale[count], u_errorName(status)); } uprv_free(src.source); + uprv_free(src.reorderCodes); } ucol_close(coll); diff --git a/icu4c/source/test/cintltst/cmsccoll.c b/icu4c/source/test/cintltst/cmsccoll.c index 32a4d0c74ba..b9a198a2278 100644 --- a/icu4c/source/test/cintltst/cmsccoll.c +++ b/icu4c/source/test/cintltst/cmsccoll.c @@ -1001,6 +1001,7 @@ static void testAgainstUCA(UCollator *coll, UCollator *UCA, const char *refName, log_verbose("No immediate difference with Win32!\n"); } uprv_free(src.source); + uprv_free(src.reorderCodes); } }