aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iconv/tst-iconv5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iconv/tst-iconv5.c b/iconv/tst-iconv5.c
index 8211843..09cec9c 100644
--- a/iconv/tst-iconv5.c
+++ b/iconv/tst-iconv5.c
@@ -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;
}
}