summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mail_menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mail_menu.c b/src/mail_menu.c
index 93be636..4e990ae 100644
--- a/src/mail_menu.c
+++ b/src/mail_menu.c
@@ -3346,7 +3346,9 @@ void do_mail_scan(struct user_record *user, int oldscan, int personal) {
}
} else {
if (oldscan) {
+ msghs = read_message_headers(i, j, user, personal);
s_printf(get_string(141), j, ma->name, count_msgs_above_msgno(msghs, jlr.HighReadMsg));
+ free_message_headers(msghs);
lines++;
if (lines == 22) {
s_printf(get_string(6));