diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-09-10 18:01:44 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-11 12:15:52 +0100 |
commit | 75881df3fd7708f234c1e2573ade812eb5701708 (patch) | |
tree | cd95d0edbe47643908204814b74e9ef7aaad86b5 /sound | |
parent | 91931320cfbbcc1dd874c2d0aef62e7d90f07f70 (diff) |
ASoC: dapm: fix memory leak
Incase of an unknown event we were directly returning but we missed
freeing params.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/soc-dapm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index f4bf21a5539b..ff8bda471b25 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3501,7 +3501,7 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w, default: WARN(1, "Unknown event %d\n", event); - return -EINVAL; + ret = -EINVAL; } out: |