Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75881df3 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Mark Brown
Browse files

ASoC: dapm: fix memory leak



Incase of an unknown event we were directly returning but we missed
freeing params.

Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 91931320
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: