Re: [evolution-patches] Exchange calendar - Memory leaks



On Thu, 2006-02-02 at 12:38 +0530, Sushma Rai wrote:
> +       e2k_results_free (results, nresults);
causes a crash.
0x419c51b9 in free () from /lib/tls/libc.so.6
(gdb) ba
#0  0x419c51b9 in free () from /lib/tls/libc.so.6
#1  0x4097c908 in e2k_result_clear (result=0x4005f840) at
e2k-result.c:177
#2  0x4097d14f in e2k_results_free (results=0x4005f840,
nresults=135810072) at e2k-result.c:418
#3  0x08076be9 in open_calendar (backend=0x8166e10, cal=0x8166dd0,
only_if_exists=0, username=0x823b2d1 "pnayak",
    password=0x8258751 "xxxxxx") at e-cal-backend-exchange.c:385

@@ open_calendar (ECalBackendSync *backend,
new_inst = e_cal_util_construct_instance (
-                                       icalcomponent_new_clone
(ecomp->icomp), itt);
The icalcomponent need not be cloned instead of freeing it later.

@@ -214,6 +214,7 @@ add_ical (ECalBackendExchange *cbex, con
    e_cal_component_set_icalcomponent (ecomp, icalcomponent_new_clone
(icalcomp));
Same here. 


thanks, Chenthill.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]