From 894672adbec2137b654974f85cb63d14535b3364 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Tue, 28 Aug 2001 22:47:37 +0000 Subject: Whoops. Double-free and FMR = bad. 2001-08-28 Peter Williams * providers/imap/camel-imap-store.c (create_folder): Whoops. Double-free and FMR = bad. svn path=/trunk/; revision=12505 --- camel/providers/imap/camel-imap-store.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'camel/providers') diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index fbdc092dc8..10794f1270 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -1075,12 +1075,12 @@ create_folder (CamelStore *store, const char *parent_name, recursive directory structure */ pathnames = imap_parse_folder_name (imap_store, folder_name); full_name = imap_concat (imap_store, parent_name, pathnames[0]); - g_free (pathnames); + g_free (pathnames[0]); parent = root = get_folder_info_online (store, full_name, 0, ex); g_free (full_name); for (i = 1; parent && pathnames[i]; i++) { full_name = imap_concat (imap_store, parent_name, pathnames[i]); - g_free (pathnames); + g_free (pathnames[i]); fi = get_folder_info_online (store, full_name, 0, ex); g_free (full_name); @@ -1091,6 +1091,7 @@ create_folder (CamelStore *store, const char *parent_name, parent->child = fi; parent = fi; } + g_free (pathnames); } else root = NULL; -- cgit v1.2.3