mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 08:16:59 +00:00
various: fix memory leaks
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
8da98bbc89
commit
d2d8abd660
4 changed files with 11 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue