[evolution-ews] Fix posible memory leak in recieve_objects
- From: Pavel Ocheretny <pocheretny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Fix posible memory leak in recieve_objects
- Date: Wed, 1 Jun 2011 09:31:20 +0000 (UTC)
commit ab5c9f9842074bb4934403b48956e7b2e6f1d0c5
Author: Pavel Ocheretny <pocheretny src gnome org>
Date: Wed Jun 1 11:44:17 2011 +0300
Fix posible memory leak in recieve_objects
src/calendar/e-cal-backend-ews.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index b0e1a2c..07c69d9 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -1596,6 +1596,9 @@ e_cal_backend_ews_receive_objects (ECalBackend *backend, EDataCal *cal, EServerM
if (error)
error->code = OtherError;
}
+ g_free (item_id);
+ g_free (change_key);
+ g_free (accept_data);
break;
case ICAL_METHOD_CANCEL:
default:
@@ -1609,8 +1612,6 @@ e_cal_backend_ews_receive_objects (ECalBackend *backend, EDataCal *cal, EServerM
exit:
e_data_cal_notify_objects_received (cal, context, error);
-
- g_free(accept_data);
}
/* TODO Do not replicate this in every backend */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]