freebsd-dev/sys/netpfil
Kristof Provost 4483fb4773 pf: fix ioctl() memory leak
When we create an nvlist and insert it into another nvlist we must
remember to destroy it. The nvlist_add_nvlist() function makes a copy,
just like nvlist_add_string() makes a copy of the string. If we don't
we're leaking memory on every (nvlist-based) ioctl() call.

While here remove two redundant 'break' statements.

PR:		255971
MFC after:	3 days
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2021-05-24 15:56:24 +02:00
..
ipfw dummynet: Fix mbuf tag allocation failure handling 2021-05-18 15:25:16 -04:00
pf pf: fix ioctl() memory leak 2021-05-24 15:56:24 +02:00