aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index f69606ab18..1223fc3e33 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -77,13 +77,15 @@ setup_storages (EShell *shell)
local_storage_path = g_concat_dir_and_file (priv->local_directory,
LOCAL_STORAGE_DIRECTORY);
local_storage = e_local_storage_open (local_storage_path);
- g_free (local_storage_path);
if (local_storage == NULL) {
g_warning (_("Cannot set up local storage -- %s"), local_storage_path);
+ g_free (local_storage_path);
return FALSE;
}
+ g_free (local_storage_path);
+
priv->storage_set = e_storage_set_new ();
e_storage_set_add_storage (priv->storage_set, local_storage);