]> granicus.if.org Git - neomutt/commitdiff
Free queries and alias_queries before exiting.
authorKevin McCarthy <kevin@8t8.us>
Fri, 14 Sep 2018 21:21:04 +0000 (14:21 -0700)
committerRichard Russon <rich@flatcap.org>
Tue, 25 Sep 2018 12:24:04 +0000 (13:24 +0100)
main.c

diff --git a/main.c b/main.c
index 40dd2074f8079346af3ee1df1edfe6e24332b739..cc65463615000126738d5a58f60287f964ab24a3 100644 (file)
--- a/main.c
+++ b/main.c
@@ -740,7 +740,6 @@ int main(int argc, char *argv[], char *envp[])
   if (!STAILQ_EMPTY(&queries))
   {
     rc = mutt_query_variables(&queries);
-    mutt_list_free(&queries);
     goto main_curses;
   }
 
@@ -1238,6 +1237,7 @@ main_curses:
   if (repeat_error && ErrorBufMessage)
     puts(ErrorBuf);
 main_exit:
+  mutt_list_free(&queries);
   crypto_module_free();
   mutt_window_free();
   mutt_envlist_free();