[Users] [Bug 3155] Memory leaks found by Valgrind in a9065aec26499a0e1294c73b6d9e6f039976521e

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Thu May 1 18:51:36 CEST 2014


http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3155

--- Comment #5 from Deweloper <deweloper at wp.pl> ---
The following leak, marked as "fixed", still happens:

==00:00:56:04.210 2831== 152 bytes in 2 blocks are definitely lost in loss
record 15,631 of 17,317
==00:00:56:04.210 2831==    at 0x4006B11: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==00:00:56:04.210 2831==    by 0x4806B4B1: g_malloc (gmem.c:104)
==00:00:56:04.210 2831==    by 0x480845AB: g_strconcat (gstrfuncs.c:589)
==00:00:56:04.210 2831==    by 0x80E1B4E: imap_cache_msg (imap.c:1588)
==00:00:56:04.210 2831==    by 0x80E9DB9: imap_gtk_synchronise (imap_gtk.c:449)
==00:00:56:04.210 2831==    by 0x80DD9C1: imap_synchronise (imap.c:6055)
==00:00:56:04.210 2831==    by 0x80C8E80: folder_item_synchronise
(folder.c:4546)
==00:00:56:04.210 2831==    by 0x80C7687: folder_item_scan_full (folder.c:2386)
==00:00:56:04.210 2831==    by 0x80C92C6: folder_item_scan (folder.c:2483)
==00:00:56:04.210 2831==    by 0x80D44E6: folderview_check_new
(folderview.c:1149)
==00:00:56:04.210 2831==    by 0x80EDF88: inc_all_account_mail (inc.c:362)
==00:00:56:04.210 2831==    by 0x81BFE3E: toolbar_inc_all_cb (toolbar.c:2683)

Looks like filename is being free'd only if it describes an existing file,
otherwise g_free() isn't called (?)

Valgrind has also detected a new leak (not present in previously attached
report):

==00:00:56:04.210 2831== 156 bytes in 3 blocks are definitely lost in loss
record 15,639 of 17,317
==00:00:56:04.210 2831==    at 0x4006B11: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==00:00:56:04.210 2831==    by 0x4806B4B1: g_malloc (gmem.c:104)
==00:00:56:04.210 2831==    by 0x480843CB: g_strndup (gstrfuncs.c:428)
==00:00:56:04.210 2831==    by 0x480463B5: strdup_len (gconvert.c:878)
==00:00:56:04.210 2831==    by 0x480475D7: g_filename_from_utf8
(gconvert.c:1233)
==00:00:56:04.210 2831==    by 0x811566D: mh_filename_from_utf8 (mh.c:1214)
==00:00:56:04.211 2831==    by 0x8115ED0: mh_item_get_path (mh.c:858)
==00:00:56:04.211 2831==    by 0x80C4A0A: folder_item_get_path (folder.c:1890)
==00:00:56:04.211 2831==    by 0x80C66D2: folder_get_default_processing
(folder.c:4266)
==00:00:56:04.211 2831==    by 0x80ECB7E: inc_start (inc.c:702)
==00:00:56:04.211 2831==    by 0x80EE018: inc_all_account_mail (inc.c:388)
==00:00:56:04.211 2831==    by 0x80EE158: inc_autocheck_func (inc.c:1497)

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Users mailing list