diff options
author | 2015-07-08 21:59:59 +0200 | |
---|---|---|
committer | 2015-07-08 22:16:12 +0100 | |
commit | e18077b6e5dfe26e9fbbdc1fd1085a1701c24bea (patch) | |
tree | f4c0c644bb06cdc9a93c730f28a74485ac615630 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ASoC: dapm: Lock during userspace access (diff) | |
download | wireguard-linux-e18077b6e5dfe26e9fbbdc1fd1085a1701c24bea.tar.xz wireguard-linux-e18077b6e5dfe26e9fbbdc1fd1085a1701c24bea.zip |
ASoC: dapm: Fix kcontrol widget name memory management
The name field of the widget template is only used inside
snd_soc_dapm_new_control_unlocked() which allocates a copy for the actual
widget. This means we need to free the name allocated for the template in
dapm_kcontrol_data_alloc() and not the name of the actual widget in
dapm_kcontrol_free(). Otherwise we get a double free on the widget name and
a memory leak on the template name.
Fixes: 773da9b358bf ("ASoC: dapm: Append "Autodisable" to autodisable widget names")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions