Page MenuHomeFreeBSD

pf: Fix more ioctl memory leaks
ClosedPublic

Authored by kp on Jun 1 2021, 2:20 PM.
Tags
None
Referenced Files
F162937963: D30595.id90258.diff
Sat, Jul 18, 12:14 PM
F162936070: D30595.id90285.diff
Sat, Jul 18, 11:43 AM
Unknown Object (File)
Thu, Jul 16, 7:44 PM
Unknown Object (File)
Sat, Jul 4, 4:56 PM
Unknown Object (File)
Jun 13 2026, 10:25 PM
Unknown Object (File)
Jun 7 2026, 2:24 PM
Unknown Object (File)
Jun 4 2026, 6:30 AM
Unknown Object (File)
May 30 2026, 3:31 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable