Index: evolution-exchange/addressbook/e-book-backend-exchange.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/addressbook/e-book-backend-exchange.c,v
retrieving revision 1.48
diff -u -p -r1.48 e-book-backend-exchange.c
--- evolution-exchange/addressbook/e-book-backend-exchange.c	23 Jan 2006 08:39:14 -0000	1.48
+++ evolution-exchange/addressbook/e-book-backend-exchange.c	31 Jan 2006 06:46:49 -0000
@@ -564,6 +564,7 @@ e_book_backend_exchange_connect (EBookBa
 
 	if (status != E2K_HTTP_MULTI_STATUS) {
 		bepriv->connected = FALSE;
+		e2k_results_free (results, nresults);
 		return GNOME_Evolution_Addressbook_OtherError;
 	}
 
@@ -575,6 +576,7 @@ e_book_backend_exchange_connect (EBookBa
 
 	if (!(access & MAPI_ACCESS_READ)) {
 		bepriv->connected = FALSE;
+		e2k_results_free (results, nresults);
 		return GNOME_Evolution_Addressbook_PermissionDenied;
 	}
 
Index: evolution-exchange/calendar/e-cal-backend-exchange.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/calendar/e-cal-backend-exchange.c,v
retrieving revision 1.55
diff -u -p -r1.55 e-cal-backend-exchange.c
--- evolution-exchange/calendar/e-cal-backend-exchange.c	18 Jan 2006 13:07:41 -0000	1.55
+++ evolution-exchange/calendar/e-cal-backend-exchange.c	31 Jan 2006 06:47:16 -0000
@@ -383,6 +383,8 @@ open_calendar (ECalBackendSync *backend,
 			access = atoi (prop);
 	}
 
+	e2k_results_free (results, nresults);
+
 	if (!(access & MAPI_ACCESS_READ)) {
 		g_mutex_unlock (cbex->priv->open_lock);
 		return GNOME_Evolution_Calendar_PermissionDenied;
Index: evolution-exchange/mail/mail-stub-exchange.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/mail/mail-stub-exchange.c,v
retrieving revision 1.32
diff -u -p -r1.32 mail-stub-exchange.c
--- evolution-exchange/mail/mail-stub-exchange.c	17 Dec 2005 07:27:19 -0000	1.32
+++ evolution-exchange/mail/mail-stub-exchange.c	31 Jan 2006 06:48:04 -0000
@@ -577,12 +577,14 @@ get_folder_online (MailStubExchangeFolde
 		if (!background) {
 			got_folder_error (mfld, _("Could not open folder: Permission denied"));
 		}
+		e2k_results_free (results, nresults);	
 		return FALSE;
 	} else if (!E2K_HTTP_STATUS_IS_SUCCESSFUL (status)) {
 		g_warning ("got_folder_props: %d", status);
 		if (!background) {
 			got_folder_error (mfld, _("Could not open folder"));
 		}
+		e2k_results_free (results, nresults);
 		return FALSE;
 	}
 
@@ -599,6 +601,7 @@ get_folder_online (MailStubExchangeFolde
 		if (!background) {
 			got_folder_error (mfld, _("Could not open folder: Permission denied"));
 		}
+		e2k_results_free (results, nresults);
 		return FALSE;
 	}
 	readonly = (mfld->access & (MAPI_ACCESS_MODIFY | MAPI_ACCESS_CREATE_CONTENTS)) == 0;
@@ -607,6 +610,8 @@ get_folder_online (MailStubExchangeFolde
 	if (prop)
 		mfld->deleted_count = atoi (prop);
 
+	e2k_results_free (results, nresults);
+
 	rn = e2k_restriction_andv (
 		e2k_restriction_prop_bool (E2K_PR_DAV_IS_COLLECTION,
 					   E2K_RELOP_EQ, FALSE),
@@ -893,6 +898,8 @@ sync_deletions (MailStubExchange *mse, M
 					     &results, &nresults);
 
 	if (!E2K_HTTP_STATUS_IS_SUCCESSFUL (status) || !nresults) {
+		if (nresults)
+			e2k_results_free (results, nresults);
 		g_warning ("got_sync_deleted_props: %d", status);
 		return;
 	}
@@ -906,6 +913,8 @@ sync_deletions (MailStubExchange *mse, M
 					E2K_PR_DAV_VISIBLE_COUNT);
 	if (prop)
 		visible_count = atoi (prop);
+
+	e2k_results_free (results, nresults);
 
 	if (visible_count >= mfld->messages->len) {
 		if (mfld->deleted_count == deleted_count)
Index: evolution-data-server/servers/exchange/storage/e-folder-exchange.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/exchange/storage/e-folder-exchange.c,v
retrieving revision 1.9
diff -u -p -r1.9 e-folder-exchange.c
--- evolution-data-server/servers/exchange/storage/e-folder-exchange.c	10 Jan 2006 07:57:46 -0000	1.9
+++ evolution-data-server/servers/exchange/storage/e-folder-exchange.c	31 Jan 2006 06:48:43 -0000
@@ -442,14 +442,15 @@ e_folder_exchange_save_to_file (EFolder 
 	physical_uri = e_folder_get_physical_uri (folder);
 	internal_uri = e_folder_exchange_get_internal_uri (folder);
 	permanent_uri = e_folder_exchange_get_permanent_uri (folder);
+
+	g_return_val_if_fail (name && type && physical_uri && internal_uri,
+			      FALSE);
+
 	if ((fsize = e_folder_exchange_get_folder_size (folder)) >= 0)
 		folder_size = g_strdup_printf ("%llu", fsize);
 	else
 		return FALSE;
 
-	g_return_val_if_fail (name && type && physical_uri && internal_uri,
-			      FALSE);
-
 	doc = xmlNewDoc ("1.0");
 	root = xmlNewDocNode (doc, NULL, "connector-folder", NULL);
 	xmlNewProp (root, "version", "1");
@@ -470,6 +471,8 @@ e_folder_exchange_save_to_file (EFolder 
 		g_unlink (filename);
 
 	xmlFreeDoc (doc);
+
+	g_free (folder_size);
 
 	return status == 0;
 }
Index: evolution-data-server/servers/exchange/storage/exchange-hierarchy-webdav.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/exchange/storage/exchange-hierarchy-webdav.c,v
retrieving revision 1.8
diff -u -p -r1.8 exchange-hierarchy-webdav.c
--- evolution-data-server/servers/exchange/storage/exchange-hierarchy-webdav.c	17 Dec 2005 07:23:12 -0000	1.8
+++ evolution-data-server/servers/exchange/storage/exchange-hierarchy-webdav.c	31 Jan 2006 06:49:10 -0000
@@ -729,6 +729,7 @@ scan_subtree (ExchangeHierarchy *hier, E
 			subtrees = g_slist_prepend (subtrees, folder);
 		}
 		exchange_hierarchy_new_folder (hier, folder);
+		g_boject_unref (folder);
 
 		/* Check the folder size here */
 		name = e2k_properties_get_prop (result->props,
