[gyrus] Minor code refactoring



commit 8f21e56912654b9ea88b402f11fd63d9fa54e816
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Wed Dec 29 01:41:11 2010 +0200

    Minor code refactoring

 src/gyrus-admin-mailbox.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/gyrus-admin-mailbox.c b/src/gyrus-admin-mailbox.c
index 05eab8d..b1289ca 100644
--- a/src/gyrus-admin-mailbox.c
+++ b/src/gyrus-admin-mailbox.c
@@ -269,17 +269,13 @@ gyrus_admin_mailbox_exists (GyrusAdmin *admin,
 	g_free (msg);
 
 	status = gyrus_admin_listen_channel (admin, &msg, NULL);
+	g_free (msg);
 	if (status == GYRUS_IMAP_STATUS_LIST) {
-		/* we have a coincidence. free the incoming buffer */
-		g_free (msg);
-
 		gyrus_admin_listen_channel (admin, &msg, NULL);
 		g_free (msg);
 
 		return TRUE;
 	}
-	
-	g_free (msg);
 
 	return FALSE;
 }



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