X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/729e4ab9bc6618bc3d8a898e575df7f4019e29ca..e4f10fab0c078f399c9deef476d9c9b73b47dff8:/icuSources/test/intltest/fldset.cpp diff --git a/icuSources/test/intltest/fldset.cpp b/icuSources/test/intltest/fldset.cpp index b289ad60..fcea3e07 100644 --- a/icuSources/test/intltest/fldset.cpp +++ b/icuSources/test/intltest/fldset.cpp @@ -1,6 +1,6 @@ /* ************************************************************************ -* Copyright (c) 2007-2008, International Business Machines +* Copyright (c) 2007-2011, International Business Machines * Corporation and others. All Rights Reserved. ************************************************************************ */ @@ -119,6 +119,8 @@ int32_t FieldsSet::parseFrom(const UnicodeString& str, const u_UCharsToChars(u, ch, len); ch[len] = 0; /* include terminating \0 */ it_errln(UnicodeString("Parse Failed: Field ") + UnicodeString(ch) + UnicodeString(", err ") + UnicodeString(u_errorName(status))); + delete[] kv; + delete[] dest; return -1; } @@ -132,6 +134,8 @@ int32_t FieldsSet::parseFrom(const UnicodeString& str, const u_UCharsToChars(u, ch, len); ch[len] = 0; /* include terminating \0 */ it_errln(UnicodeString("Parse Failed: Value ") + UnicodeString(ch) + UnicodeString(", err ") + UnicodeString(u_errorName(status))); + delete[] kv; + delete[] dest; return -1; }