Page MenuHomeFreeBSD

pf: Fix more ioctl memory leaks
ClosedPublic

Authored by kp on Jun 1 2021, 2:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 17, 8:13 PM
Unknown Object (File)
Mon, Oct 14, 5:36 PM
Unknown Object (File)
Sat, Oct 12, 6:52 AM
Unknown Object (File)
Oct 3 2024, 4:10 AM
Unknown Object (File)
Oct 2 2024, 1:02 AM
Unknown Object (File)
Sep 30 2024, 7:33 PM
Unknown Object (File)
Sep 16 2024, 1:24 AM
Unknown Object (File)
Sep 5 2024, 1:42 PM

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