From 527895570fc5b5f28c9ff2a862ffdf72555489dc Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 30 Mar 2016 13:07:14 +1000 Subject: [PATCH] Fix for msg bases --- mail_menu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mail_menu.c b/mail_menu.c index fd50545..460c300 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -1206,7 +1206,9 @@ int mail_menu(int socket, struct user_record *user) { if (closed == 0) { JAM_CloseMB(jb); } - free_message_headers(msghs); + if (msghs != NULL) { + free_message_headers(msghs); + } break; case 'c': {