HomeFreeBSD

pf: Free pf_rule_items when state is not created

Description

pf: Free pf_rule_items when state is not created

This addresses the issues of pf_rule_times leaking in case of stateless
rules and in case of state creation failures, like hitting the state
limit.

Reviewed by: kp
MFC after: 1 week
Sponsored by: InnoGames GmbH
Differential Revision: https://reviews.freebsd.org/D42169

(cherry picked from commit 4d19eceaefb7106d761bc9504bb0da737ae0d674)

Details

Provenance
vegeta_tuxpowered.netAuthored on Oct 12 2023, 5:43 PM
kpCommitted on Oct 19 2023, 7:29 AM
Reviewer
kp
Differential Revision
D42169: pf: Free pf_rule_items when state is not created
Parents
rG07c60e63237e: Make cr_bsd_visible()'s sub-functions internal
Branches
Unknown
Tags
Unknown