Page MenuHomeFreeBSD

sysctl: Make sysctl_ctx_free() a bit safer
ClosedPublic

Authored by markj on May 1 2024, 12:00 PM.
Tags
None
Referenced Files
F102926280: D45041.id137940.diff
Mon, Nov 18, 8:14 PM
Unknown Object (File)
Tue, Nov 12, 10:27 PM
Unknown Object (File)
Tue, Nov 12, 9:46 PM
Unknown Object (File)
Sep 21 2024, 9:46 AM
Unknown Object (File)
Sep 18 2024, 4:44 PM
Unknown Object (File)
Sep 13 2024, 6:56 AM
Unknown Object (File)
Sep 7 2024, 9:26 PM
Unknown Object (File)
Sep 7 2024, 9:26 PM
Subscribers

Details

Summary

Clear the list before returning so that it's idempotent when it
succeeds.

While here, use TAILQ_FOREACH_SAFE in the loop which unregisters OIDs.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable