summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTapas Kumar Kundu <tkundu@codeaurora.org>2015-07-17 17:43:31 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:22:33 -0700
commit56f6d6c3529d4fbd4b30156dacbb57f108ec1c62 (patch)
tree68b880a0f1101eb2c5a25090589d726f47500e67 /include
parent7a391c8e10fe946dc888be4bd26045dc1411387a (diff)
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: Tapas Kumar Kundu <tkundu@codeaurora.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions