Commit 2313b97
tools/power turbostat: Set per_cpu_msr_sum to NULL after free
Set per_cpu_msr_sum to NULL after freeing it in the error path
of msr_sum_record() to prevent potential use-after-free issues.
Signed-off-by: Emily Ehlert <ehemily@amazon.com>
Signed-off-by: Len Brown <len.brown@intel.com>1 parent 28a3ad1 commit 2313b97
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6652 | 6652 | | |
6653 | 6653 | | |
6654 | 6654 | | |
| 6655 | + | |
6655 | 6656 | | |
6656 | 6657 | | |
6657 | 6658 | | |
| |||
0 commit comments