ASoC: compress: Fix memory leak from snd_soc_new_compress
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Mon, 17 Jun 2019 11:36:36 +0000 (13:36 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 25 Jun 2019 14:33:04 +0000 (15:33 +0100)
commit09f448a415ece49ceb9d8f21f717aa3c0dbce851
tree40a6647fe1c95465b187f2df3d4d04a049c40d07
parent8a5b0177a7f6099ff534a4d9ce72673af5c3cade
ASoC: compress: Fix memory leak from snd_soc_new_compress

Change kzalloc to devm_kzalloc, so compr gets automatically freed when
it's no longer needed.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-compress.c