From: Charles Keepax Subject: Re: [PATCH] ASoC: wm0010: fix memory leak Date: Tue, 1 Sep 2015 09:29:43 +0100 Message-ID: <20150901082943.GA15505@ck-lbox> References: <1441086245-14732-1-git-send-email-sudipm.mukherjee@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx0a-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by alsa0.perex.cz (Postfix) with ESMTP id 7B15B2625C4 for ; Tue, 1 Sep 2015 10:51:27 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1441086245-14732-1-git-send-email-sudipm.mukherjee@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Sudip Mukherjee Cc: alsa-devel@alsa-project.org, Liam Girdwood , patches@opensource.wolfsonmicro.com, linux-kernel@vger.kernel.org, Takashi Iwai , Mark Brown List-Id: alsa-devel@alsa-project.org On Tue, Sep 01, 2015 at 11:14:05AM +0530, Sudip Mukherjee wrote: > 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 Thanks, Charles