HomeFreeBSD

pf: fix potential memory leaks in pf_create_state()

Description

pf: fix potential memory leaks in pf_create_state()

If we fail to init TCP (or SCTP) initialization we have to remember to free
state keys as well. They will not be freed for us when we free the state until
we've inserted the state (i.e. pf_insert_state()).

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

Details

Provenance
kpAuthored on Aug 29 2024, 11:31 AM
Differential Revision
D46583: pf: fix potential memory leaks in pf_create_state()
Parents
rG4a5fa1086184: procfs require PRIV_PROC_MEM_WRITE to write mem
Branches
Unknown
Tags
Unknown