aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliqingqing <liqingqing3@huawei.com>2020-12-21 09:52:38 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2020-12-21 09:52:38 +0530
commit756608dbe89f6a829c8f0d2479e09eb026e48d8b (patch)
tree6af788f8495efe904d4d6a64864eaccbf3b2e0d3
parentd4eb814027a32ab0221cf9b30d21e7ed3d9963ee (diff)
downloadglibc-756608dbe89f6a829c8f0d2479e09eb026e48d8b.zip
glibc-756608dbe89f6a829c8f0d2479e09eb026e48d8b.tar.gz
glibc-756608dbe89f6a829c8f0d2479e09eb026e48d8b.tar.bz2
iconv add iconv_close before the function returned with bad value.
add iconv_close before the function returned with bad value.
-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;
}
}