Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 555f3fe9 authored by Pan Xinhui's avatar Pan Xinhui Committed by Rafael J. Wysocki
Browse files

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: default avatarPan Xinhui <xinhuix.pan@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 946c14f8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
	}