Message ID | 20191214081851.378-1-liqingqing3@huawei.com |
---|---|
State | Superseded |
Headers |
Commit Message
diff --git a/iconv/tst-iconv5.c b/iconv/tst-iconv5.c index 15fd5d3ae2e..15d9629e7d9 100644 --- a/iconv/tst-iconv5.c +++ b/iconv/tst-iconv5.c @@ -72,7 +72,10 @@ convert (const char *tocode, const char *fromcode, char *inbufp, { printf ("iconv failed: from: %s, to: %s: %s", fromcode, tocode, strerror (errno)); - return -1; + + iconv_close (ic); + + return -1; } }