node_exporter
node_exporter copied to clipboard
collector/cpu_netbsd: fix 32-bit host support and plug memory leak
- Correct
plistref
stucture. The correct size of the plistref structure must be used in ioctl number computation. - Replace hardcoded ioctl number computation to match what the ioctl macros do in C.
- plist memory returned from
ENVSYS_GETDICTIONARY
must be unmapped after we're done.
cc @MatthiasPetermann Does this look ok to you?