From patchwork Thu Oct 7 08:22:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liubo X-Patchwork-Id: 237841 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o978KhKg000708 for ; Thu, 7 Oct 2010 08:20:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760120Ab0JGIUk (ORCPT ); Thu, 7 Oct 2010 04:20:40 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:54534 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752546Ab0JGIUj (ORCPT ); Thu, 7 Oct 2010 04:20:39 -0400 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id D7CBA170BE6 for ; Thu, 7 Oct 2010 16:20:36 +0800 (CST) Received: from fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id o978Gh2a027793 for ; Thu, 7 Oct 2010 16:16:44 +0800 Received: from localhost.localdomain (unknown [10.167.225.27]) by fnst.cn.fujitsu.com (Postfix) with ESMTPA id 1099814C06D for ; Thu, 7 Oct 2010 16:21:57 +0800 (CST) Message-ID: <4CAD8335.8040707@cn.fujitsu.com> Date: Thu, 07 Oct 2010 16:22:13 +0800 From: liubo User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: Linux Btrfs Subject: [PATCH] Btrfs: fix memory leak in free_log_tree Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 07 Oct 2010 08:20:43 +0000 (UTC) diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 2c3ed40..f2465f1 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -2124,6 +2124,7 @@ static void free_log_tree(struct btrfs_trans_handle *trans, } free_extent_buffer(log->node); + free_extent_buffer(log->commit_root); kfree(log); }