From: Roy Marples Date: Tue, 13 Nov 2012 17:30:19 +0000 (+0000) Subject: Move free to exit function. X-Git-Tag: v5.99.3~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71a1eb79276008080702ff2c837c73d692a2c91d;p=thirdparty%2Fdhcpcd.git Move free to exit function. --- diff --git a/dhcp6.c b/dhcp6.c index 9f22de0a..12d0312c 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -1097,13 +1097,13 @@ dhcp6_readlease(struct interface *ifp) gettimeofday(&now, NULL); if ((time_t)state->expire < now.tv_sec - st.st_mtime) { syslog(LOG_DEBUG, "%s: discarding expired lease", ifp->name); - dhcp6_freedrop_addrs(ifp, 0); goto ex; } return bytes; ex: + dhcp6_freedrop_addrs(ifp, 0); free(state->new); state->new = NULL; state->new_len = 0;