commit | 75881df3fd7708f234c1e2573ade812eb5701708 | [log] [tgz] |
---|---|---|
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | Thu Sep 10 18:01:44 2015 +0530 |
committer | Mark Brown <broonie@kernel.org> | Fri Sep 11 12:15:52 2015 +0100 |
tree | cd95d0edbe47643908204814b74e9ef7aaad86b5 | |
parent | 91931320cfbbcc1dd874c2d0aef62e7d90f07f70 [diff] [blame] |
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>
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index f4bf21a..ff8bda4 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c
@@ -3501,7 +3501,7 @@ default: WARN(1, "Unknown event %d\n", event); - return -EINVAL; + ret = -EINVAL; } out: