** Fixes bug #544202
authorPriit Laes <plaes@plaes.org>
Tue, 22 Jul 2008 17:34:55 +0000 (17:34 +0000)
committerPriit Laes <plaes@src.gnome.org>
Tue, 22 Jul 2008 17:34:55 +0000 (17:34 +0000)
2008-07-22  Priit Laes  <plaes@plaes.org>

** Fixes bug #544202

* camel-store.c: (construct): Fix string usage after it is freed.

svn path=/trunk/; revision=9167

camel/ChangeLog
camel/camel-store.c

index d0f3a7a..cb0db86 100644 (file)
@@ -1,3 +1,9 @@
+2008-07-22  Priit Laes  <plaes@plaes.org>
+
+       ** Fixes bug #544202
+
+       * camel-store.c: (construct): Fix string usage after it is freed.
+
 2008-07-22  Sankar P  <psankar@novell.com>
 
        * camel-folder-search.c (check_header), (search_system_flag):
index 043ee03..baf2da2 100644 (file)
@@ -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");