Index: calendar/ChangeLog
===================================================================
--- calendar/ChangeLog	(revision 8269)
+++ calendar/ChangeLog	(working copy)
@@ -1,3 +1,12 @@
+2007-12-05  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #501548
+
+	* backends/groupwise/e-cal-backend-groupwise-utils.c:
+	(set_properties_from_cal_component):
+	* libecal/e-cal-util.c: (e_cal_util_generate_alarms_for_comp):
+	Free memory returned by e_cal_component_get_alarm_uids properly.
+
 2007-12-03  Milan Crha  <mcrha@redhat.com>
 
 	** Fix for bug #456565
Index: calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
===================================================================
--- calendar/backends/groupwise/e-cal-backend-groupwise-utils.c	(revision 8269)
+++ calendar/backends/groupwise/e-cal-backend-groupwise-utils.c	(working copy)
@@ -568,6 +568,7 @@
 			e_cal_component_alarm_get_trigger (alarm, &trigger);
 			duration = abs (icaldurationtype_as_int (trigger.u.rel_duration));
 			e_gw_item_set_trigger (item, duration);
+			cal_obj_uid_list_free (l);
 		}
 
 
Index: calendar/libecal/e-cal-util.c
===================================================================
--- calendar/libecal/e-cal-util.c	(revision 8269)
+++ calendar/libecal/e-cal-util.c	(working copy)
@@ -599,6 +599,8 @@
 	/* We add the ABSOLUTE triggers separately */
 	generate_absolute_triggers (comp, &aod, resolve_tzid, user_data, default_timezone);
 
+	cal_obj_uid_list_free (alarm_uids);
+
 	if (aod.n_triggers == 0)
 		return NULL;
 
