Skip to content

Commit

Permalink
ASoC: dapm: fix memory leak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sudip Mukherjee authored and Mark Brown committed Sep 11, 2015
1 parent 9193132 commit 75881df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 75881df

Please sign in to comment.