From: Takashi Iwai Subject: Re: [PATCH] au88x0: mem leak fix in snd_vortex_create() Date: Mon, 06 Aug 2007 14:06:23 +0200 Message-ID: References: <200708040209.25589.jesper.juhl@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id A73B724364 for ; Mon, 6 Aug 2007 14:06:23 +0200 (CEST) In-Reply-To: <200708040209.25589.jesper.juhl@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Jesper Juhl Cc: alsa-devel@alsa-project.org, Linux Kernel Mailing List , Manuel Jander List-Id: alsa-devel@alsa-project.org At Sat, 4 Aug 2007 02:09:25 +0200, Jesper Juhl wrote: > > Hi, > > In sound/pci/au88x0/au88x0.c::snd_vortex_create() : > The Coverity checker found that if we allocate storage for 'chip' > but then leave via the regions_out: label, then we end up leaking > the storage allocated for 'chip'. > I believe simply freeing 'chip' before the "return err;" line is > all we need to fix this, but please double-check me :) > > > Signed-off-by: Jesper Juhl Thanks, applied to ALSA tree now. Takashi