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

Skip to content
Commit 95d95d5a authored by David Collins's avatar David Collins Committed by Gerrit - the friendly Code Review server
Browse files

regulator: rpmh-regulator: fix rpmh_regulator_init_vreg_supply memory leak



Commit 29c41d5c ("regulator: rpmh-regulator: support parent
supply specification in subnodes") introduced a memory leak in
the function rpmh_regulator_init_vreg_supply() due to 'buf' not
being freed in the new 'else if' statement.  Fix this memory leak
by freeing 'buf' correctly.

Change-Id: If2748b595d8ae3a4564a2956a67aeda476975309
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 1975f826
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