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

Commit 80717ea6 authored by Tapas Kumar Kundu's avatar Tapas Kumar Kundu Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: msm_perf: free allocated memory if error happens



If any error happens during allocating memory or initializing cluster
structure then it returns error but it does not free already
allocated memory. This may cause memory leak in certain scenerios.

This change prevents memory leak by freeing memory when error
happens during initialization.

Change-Id: I820acd676dc5baff270c2093ca24a1014c25dabb
Signed-off-by: default avatarTapas Kumar Kundu <tkundu@codeaurora.org>
parent 167f37e5
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