Re: [PATCH net] mld: fix memory leak in mld_del_delrec()

2019-08-28 Thread David Miller
From: Eric Dumazet Date: Tue, 27 Aug 2019 03:33:12 -0700 > Similar to the fix done for IPv4 in commit e5b1c6c6277d > ("igmp: fix memory leak in igmpv3_del_delrec()"), we need to > make sure mca_tomb and mca_sources are not blindly overwritten. > > Using swap() then a call to ip6_mc_clear_src() w

[PATCH net] mld: fix memory leak in mld_del_delrec()

2019-08-27 Thread Eric Dumazet
Similar to the fix done for IPv4 in commit e5b1c6c6277d ("igmp: fix memory leak in igmpv3_del_delrec()"), we need to make sure mca_tomb and mca_sources are not blindly overwritten. Using swap() then a call to ip6_mc_clear_src() will take care of the missing free. BUG: memory leak unreferenced obj