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

Commit 66d49f31 authored by Sultanxda's avatar Sultanxda Committed by Razziell
Browse files

cpufreq: stats: Fix memory leaks when updating stats table



The address for an element in the per-cpu cpufreq_stats_table variable
is overwritten in cpufreq_stats_update_policy_cpu(), but the memory
allocated at the address that gets overwritten is not freed beforehand.

Free the allocated memory beforehand to fix the memory leaks.

Signed-off-by: default avatarSultanxda <sultanxda@gmail.com>
Signed-off-by: default avatarFrancisco Franco <franciscofranco.1990@gmail.com>
parent 7612d1d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment