aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-08-29 06:47:37 +0800
committerPeter Williams <peterw@src.gnome.org>2001-08-29 06:47:37 +0800
commit894672adbec2137b654974f85cb63d14535b3364 (patch)
tree9b99101ffd7e88e3e536f47d84ab4ae7183c4115 /camel/providers
parentc70a3966d9d243325fc69750295adcde45c7ade1 (diff)
downloadgsoc2013-evolution-894672adbec2137b654974f85cb63d14535b3364.tar.gz
gsoc2013-evolution-894672adbec2137b654974f85cb63d14535b3364.tar.zst
gsoc2013-evolution-894672adbec2137b654974f85cb63d14535b3364.zip
Whoops. Double-free and FMR = bad.
2001-08-28 Peter Williams <peterw@ximian.com> * providers/imap/camel-imap-store.c (create_folder): Whoops. Double-free and FMR = bad. svn path=/trunk/; revision=12505
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-store.c5
1 files changed, 3 insertions, 2 deletions
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;