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 475781 - Leaks around ECalComponentDateTime
Leaks around ECalComponentDateTime
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
2.12.x
Other Linux
: Normal normal
: ---
Assigned To: Milan Crha
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2007-09-11 09:31 UTC by Milan Crha
Modified: 2013-09-13 00:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed eds patch (4.99 KB, patch)
2007-09-11 10:09 UTC, Milan Crha
committed Details | Review
proposed evo patch (18.78 KB, patch)
2007-09-11 10:45 UTC, Milan Crha
committed Details | Review
Fixes a huge leak. Just found it with the help of traces from dave while testing print. (499 bytes, patch)
2008-01-25 13:09 UTC, Chenthill P
committed Details | Review
Leak fix in evolution while printing month view. (880 bytes, patch)
2008-01-25 13:14 UTC, Chenthill P
committed Details | Review

Description Milan Crha 2007-09-11 09:31:39 UTC
During my work on bug #415817 I found that there can be couple of leaks around usage of ECalComponentDateTime, so I will attach here patch for evolution and evolution-data-server, where it will free memory properly.

Patch at bug #415817 covers fix in evolution-data-server/calendar/backends/file/e-cal-backend-file.c so I will skip this file here.
Comment 1 Milan Crha 2007-09-11 10:09:13 UTC
Created attachment 95337 [details] [review]
proposed eds patch

for evolution-data-server;

I also changed body of e_cal_component_free_datetime, so it indicates already freed data and it can be called twice without any harm.
Comment 2 Milan Crha 2007-09-11 10:45:39 UTC
Created attachment 95339 [details] [review]
proposed evo patch

for evolution;
Comment 3 Srinivasa Ragavan 2007-12-14 09:04:53 UTC
Chen, seems like a candidate for 2.21.4
Comment 4 Srinivasa Ragavan 2007-12-19 07:57:30 UTC
chen 2.21.5?
Comment 5 Kjartan Maraas 2008-01-07 10:34:31 UTC
Would be nice to get this in soon.
Comment 6 Chenthill P 2008-01-25 12:55:15 UTC
On EDS side, Free end date and due date (e-cal-backend-groupwise-utils.c) inside the if block for consistency. 

The patches looks good to commit. 
Comment 7 Chenthill P 2008-01-25 13:09:45 UTC
Created attachment 103723 [details] [review]
Fixes a huge leak.  Just found it with the help of traces from dave while testing print.
Comment 8 Chenthill P 2008-01-25 13:14:00 UTC
Created attachment 103724 [details] [review]
Leak fix in evolution while printing month view.
Comment 9 Milan Crha 2008-01-25 14:10:35 UTC
for parts on 2007-09-11:
eds part (slightly modified) committed to trunk. Committed revision 8423.
evo part committed to trunk. Committed revision 34895.
Comment 10 Milan Crha 2008-01-25 17:15:27 UTC
The first patch looks fine, just add same call
e_cal_component_free_datetime (&instance_recur_id.datetime);
just before the "continue;" statement above the place you added these two, to have it 100% correct. (also add Changelog entry as in the next patch) :)

The evo patch is just great :)
Comment 11 Suman Manjunath 2008-01-28 05:27:16 UTC
Patch in e-d-s committed to SVN trunk as r8433
(http://svn.gnome.org/viewvc/evolution-data-server?view=revision&revision=8433)

Patch in evolution committed to SVN trunk as r34908
(http://svn.gnome.org/viewvc/evolution?view=revision&revision=34908)