mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 04:29:31 +00:00
ICU-2412 Fixed a leak in ucol_strcollIter
X-SVN-Rev: 11156
This commit is contained in:
parent
e7e5cba77d
commit
a1ca6bef0b
1 changed files with 3 additions and 1 deletions
|
@ -7844,7 +7844,8 @@ ucol_strcollIter( const UCollator *coll,
|
|||
while((sChar = sColl.iterator->next(sColl.iterator)) ==
|
||||
(tChar = tColl.iterator->next(tColl.iterator))) {
|
||||
if(sChar == U_SENTINEL) {
|
||||
return UCOL_EQUAL;
|
||||
result = UCOL_EQUAL;
|
||||
goto end_compare;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7877,6 +7878,7 @@ ucol_strcollIter( const UCollator *coll,
|
|||
result = ucol_strcollRegular(&sColl, &tColl, status);
|
||||
}
|
||||
|
||||
end_compare:
|
||||
if(sNormIter || tNormIter) {
|
||||
unorm_closeIter(sNormIter);
|
||||
unorm_closeIter(tNormIter);
|
||||
|
|
Loading…
Add table
Reference in a new issue