[COMMITTED] iconv add iconv_close before the function returned with bad value.
Siddhesh Poyarekar
siddhesh@sourceware.org
Mon Dec 21 04:28:54 GMT 2020
From: liqingqing <liqingqing3@huawei.com>
Fixed up whitespaces and committed -- Siddhesh
add iconv_close before the function returned with bad value.
---
iconv/tst-iconv5.c | 1 +
1 file changed, 1 insertion(+)
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;
}
}
--
2.29.2
More information about the Libc-alpha
mailing list