flose files & free memory when not needed

Fixes to issues found with valgrind.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2011-03-19 20:39:01 +01:00
parent b11163012e
commit a10396710e
2 changed files with 4 additions and 0 deletions

View file

@ -94,6 +94,8 @@ void clean_up(void)
free(config.dhcpdlease_file);
free(config.output_file);
free(ranges);
free(leases);
free(touches);
free(shared_net_names);
free(shared_networks);
}