diff options
author | liqingqing <liqingqing3@huawei.com> | 2020-12-21 09:52:38 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2020-12-21 09:52:38 +0530 |
commit | 756608dbe89f6a829c8f0d2479e09eb026e48d8b (patch) | |
tree | 6af788f8495efe904d4d6a64864eaccbf3b2e0d3 /iconv/tst-iconv5.c | |
parent | d4eb814027a32ab0221cf9b30d21e7ed3d9963ee (diff) | |
download | glibc-756608dbe89f6a829c8f0d2479e09eb026e48d8b.tar.gz glibc-756608dbe89f6a829c8f0d2479e09eb026e48d8b.tar.xz glibc-756608dbe89f6a829c8f0d2479e09eb026e48d8b.zip |
iconv add iconv_close before the function returned with bad value.
add iconv_close before the function returned with bad value.
Diffstat (limited to 'iconv/tst-iconv5.c')
-rw-r--r-- | iconv/tst-iconv5.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } |