mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-709 fix mem leak in test code
X-SVN-Rev: 3627
This commit is contained in:
parent
1690189fea
commit
1d15c0c65a
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue