summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-06-27 14:32:08 +0100
committerMark Brown <broonie@kernel.org>2019-06-28 15:08:49 +0100
commit1ad741d0e8e8ecccc16aa9ccb8362575197d91bf (patch)
tree175baf6ff9f597824379ae65961bfe1491d15468 /tools/perf/scripts/python/export-to-sqlite.py
parent8af26493c03581ad476a77630502de6152cf013d (diff)
downloadcachepc-linux-1ad741d0e8e8ecccc16aa9ccb8362575197d91bf.tar.gz
cachepc-linux-1ad741d0e8e8ecccc16aa9ccb8362575197d91bf.zip
ASoC: topology: fix memory leaks on sm, se and sbe
Currently when a kstrdup fails the error exit paths don't free the allocations for sm, se and sbe. This can be fixed by assigning kc[i].private_value to these before doing the ksrtdup so that the error exit path will be able to free these objects. Addresses-Coverity: ("Resource leak") Fixes: 9f90af3a9952 ("ASoC: topology: Consolidate and fix asoc_tplg_dapm_widget_*_create flow") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions