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>
This commit is contained in:
Emily Ehlert 2025-11-13 19:16:08 +00:00 • committed by Len Brown
commit 2313b97bc0