cpu: fix bug.

Ooops invalid index potentially...
This commit is contained in:
Alastair Poole 2020-11-27 21:55:30 +00:00
parent a3f12b4549
commit 194ab50626
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ _core_times_main_cb(void *data, Ecore_Thread *thread)
core->freq = system_cpu_n_frequency_get(id);
if (ad->cpu_temp)
core->temp = system_cpu_n_temperature_get(id);
free(cores[n]);
free(cores[id]);
}
ecore_thread_feedback(thread, cores_out);
}