-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Labels
Milestone
Description
runtime/src/libraries/Common/src/Interop/FreeBSD/Interop.Process.cs
Lines 89 to 93 in 035b729
int ret = Interop.Sys.Sysctl(sysctlName, ref pBuffer, ref bytesLength); | |
if (ret != 0 ) { | |
return null; | |
} | |
return System.Text.Encoding.UTF8.GetString(pBuffer, (int)bytesLength-1); |
Sysctl may allocate a buffer that the caller needs to free.
am11 and adamsitnik