evolution-data-server r9942 - in branches/gnome-2-24/calendar: . backends/groupwise
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9942 - in branches/gnome-2-24/calendar: . backends/groupwise
- Date: Fri, 16 Jan 2009 08:01:44 +0000 (UTC)
Author: msuman
Date: Fri Jan 16 08:01:44 2009
New Revision: 9942
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9942&view=rev
Log:
Fix for bug #443296 - Free memory only after the string is duped, fixes a memory corruption.
Modified:
branches/gnome-2-24/calendar/ChangeLog
branches/gnome-2-24/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
Modified: branches/gnome-2-24/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
==============================================================================
--- branches/gnome-2-24/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c (original)
+++ branches/gnome-2-24/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c Fri Jan 16 08:01:44 2009
@@ -326,8 +326,6 @@
continue;
}
- g_free (attach_filename_full);
-
attach_item = g_new0 (EGwItemAttachment, 1);
/* FIXME the member does not follow the naming convention.
* Should be fixed in e-gw-item*/
@@ -340,6 +338,7 @@
attach_item->data = encoded_data;
attach_item->size = strlen (encoded_data);
+ g_free (attach_filename_full);
g_free (file_contents);
attach_list = g_slist_append (attach_list, attach_item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]