From 675679acf7c52d009d00984c3401bac9af97064e Mon Sep 17 00:00:00 2001 From: josch Date: Sun, 21 Sep 2014 15:04:46 +0200 Subject: [PATCH] fix segmentation fault when quitting without logging in --- mfshell/mfshell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mfshell/mfshell.c b/mfshell/mfshell.c index 59c1fae..69190b6 100644 --- a/mfshell/mfshell.c +++ b/mfshell/mfshell.c @@ -149,6 +149,7 @@ void mfshell_destroy(mfshell * shell) free(shell->server); free(shell->local_working_dir); folder_free(shell->folder_curr); - mfconn_destroy(shell->conn); + if (shell->conn != NULL) + mfconn_destroy(shell->conn); free(shell); }