]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Free offer on drop.
authorRoy Marples <roy@marples.name>
Fri, 24 Jul 2015 21:53:56 +0000 (21:53 +0000)
committerRoy Marples <roy@marples.name>
Fri, 24 Jul 2015 21:53:56 +0000 (21:53 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index fbc5778e1b2dd02d588e5a23eacda2f67451c2a1..713b3be44db9d4995187b7aa54fdc88010b46239 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2322,6 +2322,8 @@ dhcp_drop(struct interface *ifp, const char *reason)
        dhcp_auth_reset(&state->auth);
        dhcp_close(ifp);
 
+       free(state->offer);
+       state->offer = NULL;
        free(state->old);
        state->old = state->new;
        state->new = NULL;