turbostat plugin: reset the right variable
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 16 Apr 2016 11:52:34 +0000 (13:52 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 16 Apr 2016 11:59:40 +0000 (13:59 +0200)
src/turbostat.c

index fc1b5dc..bd5d86c 100644 (file)
@@ -1342,7 +1342,7 @@ free_all_buffers(void)
 
        CPU_FREE(cpu_present_set);
        cpu_present_set = NULL;
-       cpu_present_set = 0;
+       cpu_present_setsize = 0;
 
        CPU_FREE(cpu_affinity_set);
        cpu_affinity_set = NULL;