]> git.ipfire.org Git - thirdparty/glibc.git/commit
libio: Fix gconv-related memory leak [BZ #24583]
authorFlorian Weimer <fweimer@redhat.com>
Tue, 21 May 2019 08:34:21 +0000 (10:34 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 21 May 2019 10:03:54 +0000 (12:03 +0200)
commit7e740ab2e7be7d83b75513aa406e0b10875f7f9c
treeddeb5ddc8c43af310927c3db8b164a91a74ac248
parent09e1b0e3f6facc1af2dbcfef204f0aaa8718772b
libio: Fix gconv-related memory leak [BZ #24583]

struct gconv_fcts for the C locale is statically allocated,
and __gconv_close_transform deallocates the steps object.
Therefore this commit introduces __wcsmbs_close_conv to avoid
freeing the statically allocated steps objects.
ChangeLog
libio/Makefile
libio/iofclose.c
libio/tst-wfile-ascii.c [new file with mode: 0644]
libio/tst-wfile-gconv.c [new file with mode: 0644]
wcsmbs/wcsmbsload.c
wcsmbs/wcsmbsload.h