iconv: use iconv_close after iconv_open

Message ID 20191214080722.273-1-liqingqing3@huawei.com
State New
Headers show
Series
  • iconv: use iconv_close after iconv_open
Related show

Commit Message

Qingqing Li Dec. 14, 2019, 8:07 a.m.
---
 iconv/tst-iconv3.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.23.0.windows.1

Comments

Siddhesh Poyarekar Dec. 21, 2020, 4:29 a.m. | #1
On 12/14/19 1:37 PM, liqingqing wrote:
> ---

>   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;

>   }

>   

> 


Committed, thanks.

Siddhesh

Patch

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;
 }