mirror of git://sourceware.org/git/glibc.git
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",
|
printf ("iconv failed: from: %s, to: %s: %s",
|
||||||
fromcode, tocode, strerror (errno));
|
fromcode, tocode, strerror (errno));
|
||||||
|
iconv_close (ic);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue