After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 627598 - Memory leak in emf_format_clone()
Memory leak in emf_format_clone()
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.32.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks: 627707
 
 
Reported: 2010-08-21 21:48 UTC by David Woodhouse
Modified: 2013-09-13 01:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Woodhouse 2010-08-21 21:48:18 UTC
==24539== 7 bytes in 1 blocks are definitely lost in loss record 738 of 27,015
==24539==    at 0x4A0515D: malloc (vg_replace_malloc.c:195)
==24539==    by 0x3A4DC45784: g_malloc (in /lib64/libglib-2.0.so.0.2512.0)
==24539==    by 0x3A4DC5D2DD: g_strdup (in /lib64/libglib-2.0.so.0.2512.0)
==24539==    by 0xFE4A6BB: emf_format_clone (em-format.c:201)
==24539==    by 0xF15B672: efh_format_timeout (em-format-html.c:327)
==24539==    by 0xF136180: mail_reader_message_loaded_cb (e-mail-reader.c:2231)
==24539==    by 0xF1703D0: mail_msg_idle_cb (mail-mt.c:451)
==24539==    by 0x3A4DC3C841: g_main_context_dispatch (in /lib64/libglib-2.0.so.0.2512.0)
==24539==    by 0x3A4DC406F7: ??? (in /lib64/libglib-2.0.so.0.2512.0)
==24539==    by 0x3A4DC40C04: g_main_loop_run (in /lib64/libglib-2.0.so.0.2512.0)
==24539==    by 0x34FA9493C6: gtk_main (in /usr/lib64/libgtk-x11-2.0.so.0.2000.1)
==24539==    by 0x4031F2: main (main.c:645)
Comment 1 David Woodhouse 2010-08-21 23:39:06 UTC
Need to free emf->uid in em_format_finalize() ?
Comment 2 David Woodhouse 2010-08-22 00:16:08 UTC
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -132,6 +132,7 @@ emf_finalize (GObject *object)
        g_free(emf->charset);
        g_free (emf->default_charset);
        g_string_free(emf->part_id, TRUE);
+       g_free(emf->uid);
 
        /* FIXME: check pending jobs */
Comment 3 David Woodhouse 2010-08-24 00:08:39 UTC
To ssh://dwmw2@git.gnome.org/git/evolution
   7c1ec37..3116748  master -> master