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.
parent
361e54e3
No related branches found
No related tags found
Loading