HomeFreeBSD

Don't leak `fd` when manipulating the device via `_getdev()`

Description

Don't leak fd when manipulating the device via _getdev()

Close the file descriptor when done calling ioctl with a try-finally block so
it doesn't get leaked.

MFC after: 2 months

Details

Provenance
ngieAuthored on
Parents
rS346624: Restore the -n flag parsing, but ignore it.
Branches
Unknown
Tags
Unknown