diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-03-21 12:41:13 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-03-21 12:41:13 +0000 |
commit | ac5ee54194454fadcaeb526577c983c26a2dd1ef (patch) | |
tree | 6c67bd0328599d3b389cdb823812832ed3b04f05 /sbin/dhclient/clparse.c | |
parent | 7c9c4b145b0419e9013b49f7e5d43a81d1342a0c (diff) |
Free lease with free_client_lease() rather than free().
Diffstat (limited to 'sbin/dhclient/clparse.c')
-rw-r--r-- | sbin/dhclient/clparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c index aec5a702ac2..afd1e65f209 100644 --- a/sbin/dhclient/clparse.c +++ b/sbin/dhclient/clparse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clparse.c,v 1.53 2013/02/09 23:37:21 krw Exp $ */ +/* $OpenBSD: clparse.c,v 1.54 2013/03/21 12:41:12 krw Exp $ */ /* Parser for dhclient config and lease files... */ @@ -432,7 +432,7 @@ parse_client_lease_statement(FILE *cfile, int is_static) token = peek_token(NULL, cfile); if (token == EOF) { parse_warn("unterminated lease declaration."); - free(lease); + free_client_lease(lease); return; } if (token == '}') |