forked from github/server
free sections memory.
This commit is contained in:
parent
22f6d4feed
commit
33a6d7fa0e
2 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue