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)
Mon, Jan 27, 5:00 PM
Unknown Object (File)
Fri, Jan 24, 5:56 PM
Unknown Object (File)
Sat, Jan 18, 12:15 AM
Unknown Object (File)
Fri, Jan 17, 9:20 PM
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
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