From aba87e0a09f2110c637bfbd4d3598643fa11f880 Mon Sep 17 00:00:00 2001 From: krw Date: Wed, 24 Feb 2021 16:53:18 +0000 Subject: [PATCH] Complete deleting ifi->active before calling write_lease_db(). No functional change but a bit more obvious and shrinks upcoming diff. --- sbin/dhclient/dhclient.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 68567dbd5dd..2104d318a4e 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.702 2021/02/24 16:36:47 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.703 2021/02/24 16:53:18 krw Exp $ */ /* * Copyright 2004 Henning Brauer @@ -2744,10 +2744,10 @@ release_lease(struct interface_info *ifi) imsg_flush(unpriv_ibuf); TAILQ_REMOVE(&ifi->lease_db, ifi->active, next); - write_lease_db(&ifi->lease_db); - free_client_lease(ifi->active); ifi->active = NULL; + write_lease_db(&ifi->lease_db); + free(ifi->configured); ifi->configured = NULL; free(ifi->unwind_info); -- 2.20.1