Anton & Paul,

humm sorry I missed the fact it was a static variable, but there is some wierdness with this code then and gmime/glib as far as valgrind is concerned. I will move on to other things for now.

Thanks,
Leif


Paul J Stevens wrote:
Anton Zakatov wrote:
Paul and Leif, in functions convert_8bit_field_to_utf8 and
convert_8bit_db_to_mime all staic variable init only once on first call.
If you release memory of iconv struct and not set it value to
(iconv_t)-1 we get segfault on next call function.
THIS IS NOT MEMORY LEAK!

Anton,

That's why I've remove all g_mime_iconv_close calls for now. I was getting
segfaults all over the place on g_mime_shutdown that all led to the
g_mime_iconv_close calls.

I guess I was a bit tired, and running out of patience with debugging and fixing
half-tested patches and BOFH mode kicked in :-(

I'm always happy to accept patches and I definitely don't want to discourage
anyone from helping out on the code. It's just that I sometimes stop being so
happy after running 'make check' or 'python test-scripts/testimap.py'...

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to