Free allocated memory on exit

This should reduce the number of possible memory leaks reported by
valgrind. The remaining reported leaks are sched tqe allocation, async
DNS instance allocation, cmdmon response/timestamp cell allocation, and
clientlog subnet allocation.
This commit is contained in:
Miroslav Lichvar
2014-09-23 13:35:38 +02:00
parent d466390233
commit f6ed7844e1
13 changed files with 116 additions and 9 deletions

5
keys.c
View File

@@ -137,6 +137,11 @@ KEY_Initialise(void)
void
KEY_Finalise(void)
{
int i;
for (i=0; i<n_keys; i++) {
Free(keys[i].val);
}
}
/* ================================================== */