mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
cpufreq: ia64: Fix a memory leak in acpi_cpufreq_cpu_exit()
freq_table should be alloced in ->init and freed in ->exit, but it it is not freed. Fix this memory leak in acpi_cpufreq_cpu_exit(). Signed-off-by: Pan Xinhui <xinhuix.pan@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
946c14f812
commit
555f3fe957
@ -333,6 +333,7 @@ acpi_cpufreq_cpu_exit (
|
||||
if (data) {
|
||||
acpi_io_data[policy->cpu] = NULL;
|
||||
acpi_processor_unregister_performance(policy->cpu);
|
||||
kfree(policy->freq_table);
|
||||
kfree(data);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user