Fix memory leak in cpufreq stats.