HomeFreeBSD

pf: fix error-case leaks in pf_create_state

Description

pf: fix error-case leaks in pf_create_state

The hand-rolled clean up failed to free counters.

Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 7f025db57c7879bfa43ac74ecd95903439fdd1d0)

Details

Provenance
mjgAuthored on Jun 28 2021, 6:29 PM
Parents
rGf75b6fce91b1: pf: assert that sizeof(struct pf_state) <= 312
Branches
Unknown
Tags
Unknown