From 756608dbe89f6a829c8f0d2479e09eb026e48d8b Mon Sep 17 00:00:00 2001 From: liqingqing Date: Mon, 21 Dec 2020 09:52:38 +0530 Subject: iconv add iconv_close before the function returned with bad value. add iconv_close before the function returned with bad value. --- iconv/tst-iconv5.c | 1 + 1 file changed, 1 insertion(+) (limited to 'iconv') diff --git a/iconv/tst-iconv5.c b/iconv/tst-iconv5.c index 8211843e4f..09cec9c4bf 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; } } -- cgit 1.4.1