Commit 61501133 authored by Committed by Brad King
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.
Showing with 13 additions and 17 deletions