diff options
| author | Colin Ian King <colin.king@canonical.com> | 2019-06-27 14:32:08 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2019-06-28 15:08:49 +0100 |
| commit | 1ad741d0e8e8ecccc16aa9ccb8362575197d91bf (patch) | |
| tree | 175baf6ff9f597824379ae65961bfe1491d15468 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | ASoC: atmel: atmel-pcm-dma.c: use devm_snd_dmaengine_pcm_register() (diff) | |
| download | linux-1ad741d0e8e8ecccc16aa9ccb8362575197d91bf.tar.gz 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/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
