]> granicus.if.org Git - icu/commitdiff
ICU-20388 ICU4C: intltest fails with a "Debug Assertion Break" on MSVC when compiled...
authorJeff Genovy <29107334+jefgen@users.noreply.github.com>
Sun, 3 Feb 2019 06:59:32 +0000 (22:59 -0800)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Tue, 5 Feb 2019 22:04:10 +0000 (14:04 -0800)
Need to use free() with malloc() instead of uprv_free().

icu4c/source/test/intltest/numfmtst.cpp

index 6781885177af05400315dc0113655053a8ddf0bf..a6e225372f91220f06f0bd5075e54c36cd48e468 100644 (file)
@@ -2230,8 +2230,8 @@ void NumberFormatTest::TestCurrencyUnit(void){
     assertEquals("Copying from meter should fail", ec, U_ILLEGAL_ARGUMENT_ERROR);
     assertEquals("Copying should not give uninitialized ISO code", u"", failure.getISOCurrency());
 
-    uprv_free(EUR);
-    uprv_free(EUR8);
+    free(EUR);
+    free(EUR8);
 }
 
 void NumberFormatTest::TestCurrencyAmount(void){