Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750700AbWEOWnY (ORCPT ); Mon, 15 May 2006 18:43:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750701AbWEOWnY (ORCPT ); Mon, 15 May 2006 18:43:24 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:58274 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S1750700AbWEOWnX (ORCPT ); Mon, 15 May 2006 18:43:23 -0400 Subject: Re: [PATCH] jffs2: memory leak in jffs2_scan_medium() From: David Woodhouse To: Florin Malita Cc: linux-kernel@vger.kernel.org In-Reply-To: <4468A450.9000908@gmail.com> References: <4468A450.9000908@gmail.com> Content-Type: text/plain Date: Mon, 15 May 2006 23:43:16 +0100 Message-Id: <1147732996.2571.9.camel@shinybook.infradead.org> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2.dwmw2.1) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 572 Lines: 19 On Mon, 2006-05-15 at 11:54 -0400, Florin Malita wrote: > If jffs2_scan_eraseblock() fails and the exit path is taken, 's' is > not > being deallocated. > > Reported by Coverity, CID: 1258. > > Signed-off-by: Florin Malita Applied with minor modifications and no trailing whitespace; thanks. -- dwmw2 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/