HomeFreeBSD

libpfctl: fix memory leak

Description

libpfctl: fix memory leak

When we create an nvlist and insert it into another nvlist we must
remember to destroy it. The nvlist_add_nvlist() function makes a copy,
just like nvlist_add_string() makes a copy of the string.

See also 4483fb47735c29408c72045469c9c4b3e549668b

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

Details

Provenance
kpAuthored on May 27 2021, 9:28 AM
Reviewer
scottl
Differential Revision
D30492: libpfctl: fix memory leak
Parents
rGac1d7397bf33: arm64: allwinner: clk: Test with the current parent freq first
Branches
Unknown
Tags
Unknown