netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=194ab50626143b71564540835261745e7939026c

commit 194ab50626143b71564540835261745e7939026c
Author: Alastair Poole <[email protected]>
Date:   Fri Nov 27 21:55:30 2020 +0000

    cpu: fix bug.
    
    Ooops invalid index potentially...
---
 src/bin/ui/ui_cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/ui/ui_cpu.c b/src/bin/ui/ui_cpu.c
index ad8bf1e..c60d997 100644
--- a/src/bin/ui/ui_cpu.c
+++ b/src/bin/ui/ui_cpu.c
@@ -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);
           }

-- 


Reply via email to