diff options
-rw-r--r-- | sbin/dhclient/kroute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c index e5952a14686..f68f57f523d 100644 --- a/sbin/dhclient/kroute.c +++ b/sbin/dhclient/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.166 2019/07/30 12:48:27 krw Exp $ */ +/* $OpenBSD: kroute.c,v 1.167 2019/08/01 15:52:15 krw Exp $ */ /* * Copyright 2012 Kenneth R Westerback <krw@openbsd.org> @@ -928,6 +928,7 @@ priv_propose(char *name, int ioctlfd, struct imsg_propose *imsg, if ((ifr.ifr_flags & IFXF_AUTOCONF4) == 0) return; + free(*resolv_conf); *resolv_conf = set_resolv_conf(name, proposal->rtsearch, proposal->rtsearch_len, |