Fix memory leaks. Add debug message when microarch is unknown

This commit is contained in:
Dr-Noob
2020-09-01 11:32:08 +02:00
parent de8952b4ea
commit 5cca6df218
7 changed files with 27 additions and 14 deletions

View File

@@ -363,8 +363,6 @@ bool print_cpufetch(struct cpuInfo* cpu, struct cache* cach, struct frequency* f
print_ascii(art);
free(cpu_name);
free(uarch);
free(manufacturing_process);
free(max_frequency);
free(sockets);
@@ -376,15 +374,15 @@ bool print_cpufetch(struct cpuInfo* cpu, struct cache* cach, struct frequency* f
free(l1d);
free(l2);
free(l3);
free(pp);
free(cpu);
free(pp);
free(art);
if(cs != NULL) free_colors_struct(cs);
free_cache_struct(cach);
free_topo_struct(topo);
free_freq_struct(freq);
free_cpuinfo_struct(cpu);
return true;
}