From: liqingqing Date: Mon, 21 Dec 2020 04:22:38 +0000 (+0530) Subject: iconv add iconv_close before the function returned with bad value. X-Git-Tag: glibc-2.33~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=756608dbe89f6a829c8f0d2479e09eb026e48d8b;p=thirdparty%2Fglibc.git iconv add iconv_close before the function returned with bad value. add iconv_close before the function returned with bad value. --- diff --git a/iconv/tst-iconv5.c b/iconv/tst-iconv5.c index 8211843e4f5..09cec9c4bf3 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; } }