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
Unknown Object (File)
Sun, Jan 12, 4:50 PM
Unknown Object (File)
Thu, Jan 9, 4:49 PM
Unknown Object (File)
Dec 5 2024, 5:36 PM
Unknown Object (File)
Nov 23 2024, 10:26 AM
Unknown Object (File)
Nov 18 2024, 8:14 PM
Unknown Object (File)
Nov 12 2024, 10:27 PM
Unknown Object (File)
Nov 12 2024, 9:46 PM
Unknown Object (File)
Sep 21 2024, 9:46 AM
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