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

Skip to content
Commit 62a3df27 authored by Prasad Sodagudi's avatar Prasad Sodagudi
Browse files

power: qpnp-bms: Fix memory leak



During bms driver probe set_battery_data() function is allocating
memory for struct bms_battery_data and not using that memory after
set_battery_data() function. So free memory allocated for
struct bms_battery_data at the end of function set_battery_data().

Change-Id: Iee37bfeaa334d79f0821a795707f088a786c2a1b
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent 91df8430
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