diff --git a/icu4c/source/test/cintltst/udatatst.c b/icu4c/source/test/cintltst/udatatst.c index 09aef10030..70c4f66baa 100644 --- a/icu4c/source/test/cintltst/udatatst.c +++ b/icu4c/source/test/cintltst/udatatst.c @@ -156,32 +156,33 @@ static void TestUDataOpen(){ * If packaging mode == dll, the file may not exist. So, if the file is * missing, skip this test without error. */ - icuDataFilePath = (char *)malloc(strlen(path) + 10); + icuDataFilePath = (char *)uprv_malloc(strlen(path) + 10); strcpy(icuDataFilePath, path); strcat(icuDataFilePath, ".dat"); /* lots_of_mallocs(); */ if (uprv_fileExists(icuDataFilePath)) - { - int i; - log_verbose("Testing udata_open() on %s\n", icuDataFilePath); - for(i=0; i