igmp, mld: Fix memory leak in igmpv3/mld_del_delrec()
[pandora-kernel.git] / net / ipv6 / mcast.c
index d21d424..51a2b9c 100644 (file)
@@ -778,6 +778,7 @@ static void mld_del_delrec(struct inet6_dev *idev, struct ifmcaddr6 *im)
                                psf->sf_crcount = im->mca_crcount;
                }
                in6_dev_put(pmc->idev);
+               kfree(pmc);
        }
        spin_unlock_bh(&im->mca_lock);
 }