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

Skip to content
Commit 761e4e57 authored by Sagar Dharia's avatar Sagar Dharia Committed by Stephen Boyd
Browse files

of: slimbus: Avoid memory leak of boardinfo array



boardinfo structure array populates slaves on the slimbus.
Framework populates devices specified by the boardinfo array and
the array is not referenced later. Also, while reallocating the
array to populate slaves in the loop, make sure that the existing
array is not leaked if reallocation fails during new slave addition.

Change-Id: Ib7e289ee56c57cad2962529270d55bf4107961df
Signed-off-by: default avatarSagar Dharia <sdharia@codeaurora.org>
parent c626d36a
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