ASoC: wm0010: fix memory leak
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 1 Sep 2015 05:44:05 +0000 (11:14 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 1 Sep 2015 13:10:50 +0000 (14:10 +0100)
We were aborting if the kzalloc of img_swap fails but without freeing the
already allocated out. Similarly we were aborting if spi_sync fails
without releasing out and img_swap.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

No differences found