aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorJianglei Nie <[email protected]>2022-06-30 02:25:20 +0800
committerMark Brown <[email protected]>2022-07-07 17:16:36 +0100
commitdf5b4aca7248dc5a5cae93f162eae0decf972e48 (patch)
treee97b89539ea2a7d71c9b9700ffd325ca2d8cb993 /tools/perf/scripts/python/event_analyzing_sample.py
parent1c4f29ec878bbf1cc0a1eb54ae7da5ff98e19641 (diff)
ASoC: qdsp6: fix potential memory leak in q6apm_get_audioreach_graph()
q6apm_get_audioreach_graph() allocates a memory chunk for graph->graph with audioreach_alloc_graph_pkt(). When idr_alloc() fails, graph->graph is not released, which will lead to a memory leak. We can release the graph->graph with kfree() when idr_alloc() fails to fix the memory leak. Signed-off-by: Jianglei Nie <[email protected]> Reviewed-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions