Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 11 Mar 2003 11:08:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 11 Mar 2003 11:08:30 -0500 Received: from angband.namesys.com ([212.16.7.85]:58256 "HELO angband.namesys.com") by vger.kernel.org with SMTP id ; Tue, 11 Mar 2003 11:08:29 -0500 Date: Tue, 11 Mar 2003 19:19:08 +0300 From: Oleg Drokin To: torvalds@transmeta.com, linux-kernel@vger.kernel.org Subject: [2.5] Memleak in fs/ufs/util.c Message-ID: <20030311191908.A4381@namesys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 628 Lines: 25 Hello! There is trivial memleak on error exit path in fs/ufs/util.c::_ubh_bread_() See the patch attached. Bye, Oleg ===== fs/ufs/util.c 1.9 vs edited ===== --- 1.9/fs/ufs/util.c Thu May 23 17:19:01 2002 +++ edited/fs/ufs/util.c Tue Mar 11 19:17:01 2003 @@ -48,6 +48,7 @@ failed: for (j = 0; j < i; j++) brelse (ubh->bh[j]); + kfree(ubh); return NULL; } - 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/