Bug#274390: memory leak in iconv_open/iconv_close
Package: libc6
Version: 2.3.2.ds1-16
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.
===================================================================
RCS file: /cvs/glibc/libc/iconvdata/gconv.map,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- libc/iconvdata/gconv.map 2002/12/13 02:54:53 1.1
+++ libc/iconvdata/gconv.map 2004/03/12 00:15:26 1.2
@@ -1,6 +1,7 @@
{
global:
gconv;
+ gconv_end;
gconv_init;
local:
*;
Reply to: