[PATCH] libio: Fix gconv-related memory leak [BZ #24583]

Andreas Schwab schwab@suse.de
Tue May 21 09:22:00 GMT 2019


On Mai 21 2019, Florian Weimer <fweimer@redhat.com> wrote:

> 	[BZ #24583]
> 	* wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
> 	* wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
> 	* libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
> 	instead of __gconv_release_step.
> 	* libio/Makefile (tests): Add tst-wfile-gconv.
> 	(tests-container): Add tst-wfile-ascii.
> 	(tst-wfile-gconv-ENV): Enable mtrace.
> 	(generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
> 	(tests-special): Add tst-wfile-gconv-mem.out.
> 	(tst-wfile-gconv.out): Depend on locales.
> 	(tst-wfile-gconv-mem.out): Add mtrace rule.
> 	* libio/tst-wfile-ascii.c: New file.
> 	* libio/tst-wfile-gconv.c: Likewise.

Ok.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



More information about the Libc-alpha mailing list