freebsd-skq/sys/netpfil/pf
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
..
if_pflog.c pf: Split pfi_kif into a user and kernel space structure 2021-01-05 23:35:37 +01:00
if_pfsync.c pf: Track the original kif for floating states 2021-05-20 12:49:27 +02:00
in4_cksum.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
pf_altq.h Extended pf(4) ioctl interface and pfctl(8) to allow bandwidths of 2018-08-22 19:38:48 +00:00
pf_if.c pf: Set the pfik_group for userspace 2021-05-17 13:48:06 +02:00
pf_ioctl.c pf: fix ioctl() memory leak 2021-05-24 15:56:24 +02:00
pf_lb.c pf: Implement the NAT source port selection of MAP-E Customer Edge 2021-04-13 10:53:18 +02:00
pf_mtag.h pf: duplicate frames only once when using dup-to pf rule 2021-01-28 16:46:44 +01:00
pf_norm.c pf: Fix IP checksum on reassembly 2021-04-30 08:19:46 +02:00
pf_nv.c pf: Introduce DIOCCLRSTATESNV 2021-05-07 22:13:30 +02:00
pf_nv.h pf: Introduce DIOCCLRSTATESNV 2021-05-07 22:13:30 +02:00
pf_osfp.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
pf_ruleset.c pf: Implement nvlist variant of DIOCGETRULE 2021-04-10 11:16:01 +02:00
pf_table.c pf: Split pf_rule into kernel and user space versions 2021-01-05 23:35:36 +01:00
pf.c pf: Track the original kif for floating states 2021-05-20 12:49:27 +02:00
pf.h pf: Allow multiple labels to be set on a rule 2021-04-26 14:14:21 +02:00