mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
iconv add iconv_close before the function returned with bad value.
add iconv_close before the function returned with bad value.
This commit is contained in:
parent
d4eb814027
commit
756608dbe8
@ -72,6 +72,7 @@ convert (const char *tocode, const char *fromcode, char *inbufp,
|
||||
{
|
||||
printf ("iconv failed: from: %s, to: %s: %s",
|
||||
fromcode, tocode, strerror (errno));
|
||||
iconv_close (ic);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user