This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] iconv: use iconv_close after iconv_open
- From: liqingqing <liqingqing3 at huawei dot com>
- To: <libc-alpha at sourceware dot org>, <fweimer at redhat dot com>, <carlos at redhat dot com>
- Cc: <hushiyuan at huawei dot com>, <liusirui at huawei dot com>
- Date: Sat, 14 Dec 2019 16:07:22 +0800
- Subject: [PATCH] iconv: use iconv_close after iconv_open
---
iconv/tst-iconv3.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/iconv/tst-iconv3.c b/iconv/tst-iconv3.c
index b06f75f0bc5..625e4706c0f 100644
--- a/iconv/tst-iconv3.c
+++ b/iconv/tst-iconv3.c
@@ -49,6 +49,8 @@ do_test (void)
else
printf ("Succeeded\n");
+ iconv_close (cd);
+
return result;
}
--
2.23.0.windows.1