From: Roy Marples Date: Tue, 16 Sep 2014 14:00:25 +0000 (+0000) Subject: Fix a memory leak handling carrier drops with a psuedo interface. X-Git-Tag: v6.4.4~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdf385c5236dc011518f4e390c07219f4f4f2b3c;p=thirdparty%2Fdhcpcd.git Fix a memory leak handling carrier drops with a psuedo interface. --- diff --git a/dhcp6.c b/dhcp6.c index 8a81bc5d..1a6c0367 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -3124,7 +3124,9 @@ dhcp6_freedrop(struct interface *ifp, int drop, const char *reason) ifpx = dhcp6_findpfxdlgif(ifp); if (ifpx) { - dhcp6_freedrop(ifpx, drop, reason); + /* Read the below comment why we need to force + * a drop here */ + dhcp6_freedrop(ifpx, 1, reason); TAILQ_REMOVE(ifp->ctx->ifaces, ifpx, next); if_free(ifpx); }