[evolution-ews] Free filepath in proper place while creating an atatchment



commit dbe4adba41fbe6f65f1bb09a488301bfbf8e41b4
Author: Or Goshen <orx goshen intel com>
Date:   Sun Jun 19 09:54:02 2011 +0300

    Free filepath in proper place while creating an atatchment

 src/server/e-ews-connection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index b6ce69f..6dc3699 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -2775,7 +2775,6 @@ e_ews_connection_attach_file (ESoapMessage *msg,
 	}
 
 	fd = open (filepath, O_RDONLY);
-	free (filepath);
 	if (fd == -1) {
 		g_warning ("Error opening %s for reading\n", filepath);
 		return;
@@ -2803,6 +2802,7 @@ e_ews_connection_attach_file (ESoapMessage *msg,
 
 	e_soap_message_end_element(msg); /* "FileAttachment" */
 
+	free (filepath);
 	free (buffer);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]