HomeFreeBSD

pf: fix struct pf_krule_global leak

Description

pf: fix struct pf_krule_global leak

Make sure we free all of the trees we allocated when we free the ruleset.
Found by 'kldunload pf' after a test run, now that the allocation is done from a
pf-specific malloc type.

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

Details

Provenance
kpAuthored on Sep 1 2025, 8:32 AM
Parents
rG44cc3b273191: pf: free struct pf_krule_global with pf_rule_tree_free()
Branches
Unknown
Tags
Unknown