in_mcast: Fix a lock leak in inp_set_source_filters()

MFC after:	3 days
Reported by:	Claude Opus 4.6

(cherry picked from commit bebc1a5b09e358b420077a1b5c0f85f8e7f0812f)
This commit is contained in:
Mark Johnston 2026-04-16 19:57:57 +00:00 committed by Franco Fichtner
parent ce12e9a52e
commit 788c51ad94

View file

@ -2601,6 +2601,7 @@ inp_set_source_filters(struct inpcb *inp, struct sockopt *sopt)
error = copyin(msfr.msfr_srcs, kss,
sizeof(struct sockaddr_storage) * msfr.msfr_nsrcs);
if (error) {
IN_MULTI_UNLOCK();
free(kss, M_TEMP);
return (error);
}