[evolution-data-server] Bug 656487 - Memory leak in imapx fetch_folders_for_namespaces()



commit d707f577c0e23f11ecae37408477885c5b260d50
Author: David Woodhouse <David Woodhouse intel com>
Date:   Sun Aug 14 00:47:48 2011 +0100

    Bug 656487 - Memory leak in imapx fetch_folders_for_namespaces()
    
    We need to free the GSList but the namespaces themselves are fine.

 camel/providers/imapx/camel-imapx-store.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-store.c b/camel/providers/imapx/camel-imapx-store.c
index e46c496..bea0b8e 100644
--- a/camel/providers/imapx/camel-imapx-store.c
+++ b/camel/providers/imapx/camel-imapx-store.c
@@ -998,6 +998,7 @@ fetch_folders_for_namespaces (CamelIMAPXStore *istore,
 			ns = ns->next;
 		}
 	}
+	g_slist_free (namespaces);
  out:
 	g_object_unref (server);
 	return folders;



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