From 481c6ce4a227d4cdb920bd76920bec8c75126f8d Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Tue, 22 Jul 2008 17:34:55 +0000 Subject: [PATCH] ** Fixes bug #544202 2008-07-22 Priit Laes ** Fixes bug #544202 * camel-store.c: (construct): Fix string usage after it is freed. svn path=/trunk/; revision=9167 --- camel/ChangeLog | 6 ++++++ camel/camel-store.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index d0f3a7a..cb0db86 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2008-07-22 Priit Laes + + ** Fixes bug #544202 + + * camel-store.c: (construct): Fix string usage after it is freed. + 2008-07-22 Sankar P * camel-folder-search.c (check_header), (search_system_flag): diff --git a/camel/camel-store.c b/camel/camel-store.c index 043ee03..baf2da2 100644 --- a/camel/camel-store.c +++ b/camel/camel-store.c @@ -221,11 +221,12 @@ construct (CamelService *service, CamelSession *session, store->cdb = camel_db_open (store_db_path, ex); printf("store_db_path %s\n", store_db_path); - g_free (store_db_path); if (camel_exception_is_set (ex)) { - g_print ("Exiting without success for stire_db_path : [%s]\n", store_db_path); + g_print ("Exiting without success for store_db_path : [%s]\n", store_db_path); + g_free (store_db_path); return; } + g_free (store_db_path); if (camel_db_create_folders_table (store->cdb, ex)) printf ("something went wrong terribly\n"); -- 2.7.4