Bug#274390: memory leak in iconv_open/iconv_close
tags 274390 confirmed fixed-upstream
thanks
At Sat, 02 Oct 2004 00:24:48 +0900 (JST),
Atsushi Nemoto wrote:
> Just iconv_open and iconv_close for some encodings (UTF-16,
> ISO-2022-JP, etc.) causes memory leak.
>
> This is a test code.
>
> #include <iconv.h>
> int main(int argc, char** argv)
> {
> while(1) {
> iconv_close(iconv_open("UTF-16LE", "UTF-16LE"));
> }
> return 0;
> }
>
> Perhaps this is because gconv_end in the encoding module never called.
> It seems this bug has been fixed in upstream. I suppose this patch
> fixes the problem.
Yes - I guess the problem is as you mentioned. It's fixed in the
latest cvs, so this bug will be fixed in the next version after sarge
release.
Regards,
-- gotom
Reply to: