diff options
-rw-r--r-- | plugins/itip-formatter/ChangeLog | 7 | ||||
-rw-r--r-- | plugins/itip-formatter/itip-formatter.c | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog index e89d2578eb..ab9127e883 100644 --- a/plugins/itip-formatter/ChangeLog +++ b/plugins/itip-formatter/ChangeLog @@ -1,3 +1,10 @@ +2008-03-27 Milan Crha <mcrha@redhat.com> + + ** Fix for bug #523541 + + * itip-formatter.c: (find_server): + Do not leak memory returned by e_cal_component_get_recurid_as_string. + 2008-02-25 Chenthill Palanisamy <pchenthill@novell.com> * itip-formatter.c: (find_server), (update_attendee_status): Free diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 209211fab6..cd7199920b 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -790,6 +790,8 @@ find_server (struct _itip_puri *pitip, ECalComponent *comp) fd->puri = pitip; fd->uid = g_strdup (uid); fd->rid = rid; + /* avoid free this at the end */ + rid = NULL; if (pitip->start_time && pitip->end_time) { start = isodate_from_time_t (pitip->start_time); @@ -815,6 +817,7 @@ find_server (struct _itip_puri *pitip, ECalComponent *comp) g_slist_free (all_sources); g_slist_free (sources_conflict); g_free (uri); + g_free (rid); } static void |