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

Details

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