Skip to content
Commit e4ad1acc authored by Patrick Lai's avatar Patrick Lai Committed by Mark Brown
Browse files

ASoC: pcm: free path list before exiting from error conditions



dpcm_path_get() allocates dynamic memory to hold path list.
Corresponding dpcm_path_put() must be called to free the memory.
dpcm_path_put() is not called under several error conditions.
This leads to memory leak.

Signed-off-by: default avatarPatrick Lai <plai@codeaurora.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
parent 38dbfb59
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment