Mercurial > hg > dhcpcd
changeset 2676:8b41c527673d draft
Fix a memory leak handling carrier drops with a psuedo interface.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Tue, 16 Sep 2014 14:00:25 +0000 |
| parents | 16ad789d9823 |
| children | be36e1d2ae43 |
| files | dhcp6.c |
| diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcp6.c Tue Sep 16 10:22:24 2014 +0000 +++ b/dhcp6.c Tue Sep 16 14:00:25 2014 +0000 @@ -3124,7 +3124,9 @@ 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); }
