HomeFreeBSD

pf: fix more syncookie memory leaks

Description

pf: fix more syncookie memory leaks

Allocate memory for packed nvlists in M_NVLIST, as nvlist_pack() does
this as well, and we use the same variable interchangable with the
memory we allocate. When we free it we can end up freeing from the wrong
zone, leaking memory.

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D35385

Details

Provenance
franco_opnsense.orgAuthored on Jun 2 2022, 4:27 PM
kpCommitted on Jun 2 2022, 6:17 PM
Reviewer
kp
Differential Revision
D35385: pf: still one leak in here so switch all to M_NVLIST
Parents
rG1a4614a51ee7: hwpmc: Bump Intel's IA32_PERFEVTSELx width to 64 bits.
Branches
Unknown
Tags
Unknown