[evolution-data-server] CamelMaildirStore: Fix memory leak



commit 45743a99f2bb0f9f66ebe1a75854e246d869550d
Author: Carlos Martín Nieto <carlos cmartin tk>
Date:   Sat Feb 12 11:53:26 2011 +0100

    CamelMaildirStore: Fix memory leak

 camel/providers/local/camel-maildir-store.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/local/camel-maildir-store.c b/camel/providers/local/camel-maildir-store.c
index 3677df0..1d01c6f 100644
--- a/camel/providers/local/camel-maildir-store.c
+++ b/camel/providers/local/camel-maildir-store.c
@@ -514,6 +514,8 @@ scan_dirs (CamelStore *store,
 	if (!g_file_test (meta_path, G_FILE_TEST_EXISTS))
 		maildir_migrate_hierarchy ((CamelMaildirStore *) store, cancellable, error);
 
+	g_free(meta_path);
+
 	while ((d = readdir (dir))) {
 		gchar *full_name, *filename;
 		const gchar *short_name;



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