]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix a memory leak handling carrier drops with a psuedo interface.
authorRoy Marples <roy@marples.name>
Tue, 16 Sep 2014 14:00:25 +0000 (14:00 +0000)
committerRoy Marples <roy@marples.name>
Tue, 16 Sep 2014 14:00:25 +0000 (14:00 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 8a81bc5d456ccdc90a459211771d50ba1d03f228..1a6c03670157cd4d04fb8bde5ad4d070a10eacc4 100644 (file)
--- 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);
        }