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 345768 - Patch for minor gmimeobject leaks.
Patch for minor gmimeobject leaks.
Status: RESOLVED FIXED
Product: gmime
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jeffrey Stedfast
Jeffrey Stedfast
Depends on:
Blocks:
 
 
Reported: 2006-06-23 17:30 UTC by Charles Kerr
Modified: 2006-06-23 18:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Charles Kerr 2006-06-23 17:30:15 UTC
The subtypes allocated in g_mime_object_register_type() 
"sub = g_new (struct _subtype_bucket, 1)" aren't freed
in the atexit handling.

Fortunately everything else is cleaned up nicely
on exit, so the fix is just a new line into the
shutdown code you've already done:

--- gmime-object.c.bak  2006-06-23 12:23:41.000000000 -0500
+++ gmime-object.c      2006-06-23 12:24:24.000000000 -0500
@@ -698,6 +698,7 @@
 subtype_bucket_foreach (gpointer key, gpointer value, gpointer user_data)
 {
        g_free (key);
+       g_free (value);
 }
Comment 1 Jeffrey Stedfast 2006-06-23 18:10:01 UTC
cool, thanks - fixed in CVS