Page MenuHomeFreeBSD

pf: Fix more ioctl memory leaks
ClosedPublic

Authored by kp on Jun 1 2021, 2:20 PM.
Tags
None
Referenced Files
F170917149: D30595.id90285.diff
Mon, Sep 7, 1:57 PM
F170856472: D30595.id90258.diff
Mon, Sep 7, 2:02 AM
F170791799: D30595.id90258.diff
Sun, Sep 6, 3:58 PM
Unknown Object (File)
Sun, Sep 6, 5:19 AM
Unknown Object (File)
Sat, Sep 5, 7:17 PM
Unknown Object (File)
Sat, Sep 5, 2:44 PM
Unknown Object (File)
Sat, Sep 5, 12:11 PM
Unknown Object (File)
Sat, Sep 5, 10:41 AM

Details

Summary

We must also remember to free nvlists added to a parent nvlist with
nvlist_append_nvlist_array().

More importantly, when nvlist_pack() allocates memory for us it does so
in the M_NVLIST zone, so we must free it with free(.., M_NVLIST). Using
free(.., M_TEMP) as we did silently failed to free the memory.

MFC after: 3 days
Repored by: kib@
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39639
Build 36528: arc lint + arc unit