From ac5ee54194454fadcaeb526577c983c26a2dd1ef Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 21 Mar 2013 12:41:13 +0000 Subject: Free lease with free_client_lease() rather than free(). --- sbin/dhclient/clparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/dhclient') 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 == '}') -- cgit v1.2.3