ASoC: qdsp6: q6asm-dai: Fix a small memory leak
We can't return directly if snd_dma_alloc_pages() fails; we first need to free prtd->audio_client and prtd. Fixes: 22930c79 ("ASoC: qdsp6: q6asm-dai: Add support to compress offload") Signed-off-by:Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by:
Mark Brown <broonie@kernel.org>
parent
3391034e
Please register or sign in to comment