SystemInformation: Avoid use of dangling pointers on Solaris
`ParseValueFromKStat` was constructing local `std::string` instances in a loop and passing their `.c_str()` to `RunProcess` after destruction. Preserve the strings in a vector to avoid dangling pointers. While at it, simplify some logic by using standard algorithms.
Loading
Please register or sign in to comment