HomeFreeBSD

libpfctl: Improve error handling in pfctl_get_states()

Description

libpfctl: Improve error handling in pfctl_get_states()

Ensure that we always free nvlists and other allocated memory.

Reviewed by: scottl
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D30493

Details

Provenance
kpAuthored on May 27 2021, 9:43 AM
Reviewer
scottl
Differential Revision
D30493: libpfctl: Improve error handling in pfctl_get_states()
Parents
rG6dbb729d35d5: libpfctl: fix memory leak
Branches
Unknown
Tags
Unknown