HomeFreeBSD

mcast: fix leaked igmp packets on multicast cleanup

Description

mcast: fix leaked igmp packets on multicast cleanup

When we release a multicast address (e.g. on interface shutdown) we may
still have packets queued in inm_scq. We have to free those, or we'll
leak memory.

Reviewed by: glebius
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D43033

(cherry picked from commit c2e340452c147b551180f2a1600ae76491342b0e)

Details

Provenance
kpAuthored on Dec 13 2023, 12:32 PM
impCommitted on Aug 26 2024, 3:46 PM
Reviewer
glebius
Differential Revision
D43033: mcast: fix leaked igmp packets on multicast cleanup
Parents
rG31ad232d8565: Revert "mcast: fix memory leak in imf_purge()"
Branches
Unknown
Tags
Unknown