From: Roy Marples Date: Fri, 24 Jul 2015 21:53:56 +0000 (+0000) Subject: Free offer on drop. X-Git-Tag: v6.9.2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77c8eb7411bdb09d6af5e01e12c150d6c56926e1;p=thirdparty%2Fdhcpcd.git Free offer on drop. --- diff --git a/dhcp.c b/dhcp.c index fbc5778e..713b3be4 100644 --- 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;