mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
be more careful about closing iconv handle on errors
This commit is contained in:
parent
165864bb65
commit
56aaa72d3d
1 changed files with 3 additions and 0 deletions
|
@ -2476,6 +2476,7 @@ iconv_start:
|
|||
if (strict == YES)
|
||||
{
|
||||
result = NO;
|
||||
iconv_close(cd);
|
||||
goto done;
|
||||
}
|
||||
/*
|
||||
|
@ -2493,6 +2494,7 @@ iconv_start:
|
|||
else
|
||||
{
|
||||
result = NO;
|
||||
iconv_close(cd);
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
@ -2504,6 +2506,7 @@ iconv_start:
|
|||
* so if we are doing strict conversions we must fail.
|
||||
*/
|
||||
result = NO;
|
||||
iconv_close(cd);
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue