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.10
diff -u -p -r1.10 e-folder-exchange.c
--- evolution-data-server/servers/exchange/storage/e-folder-exchange.c	6 Feb 2006 08:01:53 -0000	1.10
+++ evolution-data-server/servers/exchange/storage/e-folder-exchange.c	4 Mar 2006 07:04:53 -0000
@@ -504,12 +504,17 @@ e_folder_exchange_new_from_file (Exchang
 		return NULL;
 
 	root = xmlDocGetRootElement (doc);
-	if (root == NULL || strcmp (root->name, "connector-folder") != 0)
+	if (root == NULL || strcmp (root->name, "connector-folder") != 0) {
+		xmlFreeDoc (doc);
 		return NULL;
+	}
 	version = xmlGetProp (root, "version");
-	if (!version)
+	if (!version) {
+		xmlFreeDoc (doc);
 		return NULL;
+	}
 	if (strcmp (version, "1") != 0) {
+		xmlFreeDoc (doc);
 		xmlFree (version);
 		return NULL;
 	}
@@ -566,6 +571,8 @@ e_folder_exchange_new_from_file (Exchang
 	xmlFree (physical_uri);
 	xmlFree (internal_uri);
 	xmlFree (permanent_uri);
+	xmlFree (folder_size);
+	xmlFreeDoc (doc);
 
 	return folder;
 }
Index: evolution-exchange/storage/exchange-config-listener.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/storage/exchange-config-listener.c,v
retrieving revision 1.33
diff -u -p -r1.33 exchange-config-listener.c
--- evolution-exchange/storage/exchange-config-listener.c	21 Feb 2006 05:04:36 -0000	1.33
+++ evolution-exchange/storage/exchange-config-listener.c	4 Mar 2006 09:10:19 -0000
@@ -237,7 +237,7 @@ update_foreign_uri (const char *path, co
 	g_free (new_phy_uri);
 cleanup:
 	g_free (file_path);
-	g_hash_table_destroy (old_props);
+	e_xml_destroy_hash (old_props);
 	return;
 }
 
