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/ChangeLog | 3 +++ camel/providers/imap/camel-imap-store.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 54feaca1f6..bdabbdf140 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,8 @@ 2001-08-28 Peter Williams + * providers/imap/camel-imap-store.c (create_folder): Whoops. + Double-free and FMR = bad. + * camel-remote-store.c (remote_send_string): Don't reveal the user's IMAP password if their server supports LITERALPLUS. Also add some more dashes to make it line up nicely :-) 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