free sections memory.

This commit is contained in:
Enno Rehling 2018-05-18 21:40:26 +02:00
parent 22f6d4feed
commit 33a6d7fa0e
2 changed files with 5 additions and 0 deletions

View File

@ -561,6 +561,7 @@ void kernel_done(void)
curses_done(); curses_done();
crmessage_done(); crmessage_done();
translation_done(); translation_done();
mt_clear();
} }
bool rule_stealth_other(void) bool rule_stealth_other(void)

View File

@ -255,6 +255,10 @@ void mt_clear(void) {
selist_free(ql); selist_free(ql);
messagetypes[i] = 0; messagetypes[i] = 0;
} }
for (i = 0; i != MAXSECTIONS && sections[i]; ++i) {
free(sections[i]);
sections[i] = NULL;
}
} }
const message_type *mt_find(const char *name) const message_type *mt_find(const char *name)