]> granicus.if.org Git - icu/commitdiff
ICU-13804 Fixing memory leak from r41497.
authorShane Carr <shane@unicode.org>
Fri, 1 Jun 2018 01:02:49 +0000 (01:02 +0000)
committerShane Carr <shane@unicode.org>
Fri, 1 Jun 2018 01:02:49 +0000 (01:02 +0000)
X-SVN-Rev: 41499

icu4c/source/test/intltest/numfmtst.cpp

index 12172fcf166755b2c83bbc642124ef7fa65601f7..6141f4590f1da32b9981c876bd1c72497a6a137c 100644 (file)
@@ -9127,7 +9127,7 @@ void NumberFormatTest::Test13804_EmptyStringsWhenParsing() {
         ParsePosition ppos(0);
         df.parse(sample, result, ppos);
         ppos = ParsePosition(0);
-        df.parseCurrency(sample, ppos);
+        LocalPointer<CurrencyAmount> curramt(df.parseCurrency(sample, ppos));
         status.errIfFailureAndReset();
     }