ICU-709 fix mem leak in test code

X-SVN-Rev: 3627
This commit is contained in:
Alan Liu 2001-02-15 00:05:10 +00:00
parent 1690189fea
commit 1d15c0c65a

View File

@ -515,6 +515,7 @@ static void _expect(const UTransliterator* trans,
if (U_FAILURE(status)) {
log_err("FAIL: utrans_trans() failed, error=%s\n",
u_errorName(status));
FreeXReplaceable(&xrep);
return;
}
@ -538,6 +539,7 @@ static void _expect(const UTransliterator* trans,
if (U_FAILURE(status)) {
log_err("FAIL: utrans_transIncremental() failed, error=%s\n",
u_errorName(status));
FreeXReplaceable(&xrep);
return;
}