diff options
author | 2020-02-07 20:53:25 +0200 | |
---|---|---|
committer | 2020-02-19 19:48:43 +0000 | |
commit | 242c46c023610dbc0213fc8fb6b71eb836bc5d95 (patch) | |
tree | ae1d98d97e964310b71819d254d5dd0ce5a72a00 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ASoC: topology: Fix memleak in soc_tplg_link_elems_load() (diff) | |
download | linux-dev-242c46c023610dbc0213fc8fb6b71eb836bc5d95.tar.xz linux-dev-242c46c023610dbc0213fc8fb6b71eb836bc5d95.zip |
ASoC: topology: Fix memleak in soc_tplg_manifest_load()
In case of ABI version mismatch, _manifest needs to be freed as
it is just a copy of the original topology manifest. However, if
a driver manifest handler is defined, that would get executed and
the cleanup is never reached. Fix that by getting the return status
of manifest() instead of returning directly.
Fixes: 583958fa2e52 ("ASoC: topology: Make manifest backward compatible from ABI v4")
Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com>
Link: https://lore.kernel.org/r/20200207185325.22320-3-dragos_tarcatu@mentor.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions