Messages in this thread | | | Date | Tue, 20 Jul 2010 08:55:13 -0400 | From | Prarit Bhargava <> | Subject | Re: [PATCH] cpufreq: fix memory leak in cpufreq_add_dev |
| |
On 07/20/2010 08:11 AM, Xiaotian Feng wrote: > diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > index 063b218..12263b4 100644 > --- a/drivers/cpufreq/cpufreq.c > +++ b/drivers/cpufreq/cpufreq.c > @@ -1077,6 +1077,7 @@ err_out_unregister: > > err_unlock_policy: > unlock_policy_rwsem_write(cpu); > + free_cpumask_var(policy->related_cpus); > err_free_cpumask: > free_cpumask_var(policy->cpus); > err_free_policy: >
Seems right to me ...
P.
| |