From: Sudip Mukherjee Date: Tue, 1 Sep 2015 05:44:05 +0000 (+0530) Subject: ASoC: wm0010: fix memory leak X-Git-Tag: omap-for-v4.4/cleanup-pt1~54^2~1^2~1^7~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51d2eeef1d958ef6834b24f548194f5acea0f499;p=pandora-kernel.git ASoC: wm0010: fix memory leak 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 Acked-by: Charles Keepax Signed-off-by: Mark Brown --- Reading git-diff-tree failed