Index: servers/exchange/storage/exchange-hierarchy-webdav.c
===================================================================
--- servers/exchange/storage/exchange-hierarchy-webdav.c	(revision 7815)
+++ servers/exchange/storage/exchange-hierarchy-webdav.c	(working copy)
@@ -419,7 +419,7 @@ xfer_folder (ExchangeHierarchy *hier, EF
 			exchange_hierarchy_removed_folder (hier, source);
 		exchange_hierarchy_new_folder (hier, dest);
 		scan_subtree (hier, dest, mode);
-		physical_uri = (char *) e_folder_get_physical_uri (source);
+		physical_uri = g_strdup (e_folder_get_physical_uri (source));
 		g_object_unref (dest);
 		ret_code = EXCHANGE_ACCOUNT_FOLDER_OK;
 
