ICU-709 fix mem leak in test code
X-SVN-Rev: 3627
This commit is contained in:
parent
1690189fea
commit
1d15c0c65a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user