HomeFreeBSD

libpfctl: memory leak fix

Description

libpfctl: memory leak fix

We must remember to free the nvlist we create from the kernel's response
to DIOCGETSTATESNV, on every iteration.

Reviewed by: donner
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D30957

(cherry picked from commit 0e9f1892ec739d7fbd854af699507167a0a5dde2)

Details

Provenance
kpAuthored on Jun 30 2021, 11:02 AM
Reviewer
donner
Differential Revision
D30957: libpfctl: memory leak fix
Parents
rG1882bdd192bc: pf: getstates: avoid taking the hashrow lock if the row is empty
Branches
Unknown
Tags
Unknown