forked from github/server
free sections memory.
This commit is contained in:
parent
22f6d4feed
commit
33a6d7fa0e
|
@ -561,6 +561,7 @@ void kernel_done(void)
|
|||
curses_done();
|
||||
crmessage_done();
|
||||
translation_done();
|
||||
mt_clear();
|
||||
}
|
||||
|
||||
bool rule_stealth_other(void)
|
||||
|
|
|
@ -255,6 +255,10 @@ void mt_clear(void) {
|
|||
selist_free(ql);
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue