various: fix memory leaks

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2013-11-03 14:28:42 +00:00
parent 8da98bbc89
commit d2d8abd660
4 changed files with 11 additions and 5 deletions

View file

@ -109,6 +109,7 @@ void delete_all_leases(void)
{
struct leases_t *l, *tmp;
HASH_ITER(hh, leases, l, tmp) {
free(l->ethernet);
HASH_DEL(leases, l);
free(l);
}