From patchwork Tue Jan 26 00:48:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Hongyang X-Patchwork-Id: 75131 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0Q0leX3012651 for ; Tue, 26 Jan 2010 00:47:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751972Ab0AZArN (ORCPT ); Mon, 25 Jan 2010 19:47:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751621Ab0AZArM (ORCPT ); Mon, 25 Jan 2010 19:47:12 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:62819 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750797Ab0AZArM (ORCPT ); Mon, 25 Jan 2010 19:47:12 -0500 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id 27ABE170118; Tue, 26 Jan 2010 08:47:08 +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 o0Q0kZLR023125; Tue, 26 Jan 2010 08:46:35 +0800 Received: from [10.167.141.200] (unknown [10.167.141.200]) by fnst.cn.fujitsu.com (Postfix) with ESMTPA id B5A17D4744; Tue, 26 Jan 2010 08:48:20 +0800 (CST) Message-ID: <4B5E3BD7.9000001@cn.fujitsu.com> Date: Tue, 26 Jan 2010 08:48:23 +0800 From: Yang Hongyang User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: chris.mason@oracle.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH]btrfs:fix a memory leak in acl Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c index 54f4798..6df6d6e 100644 --- a/fs/btrfs/acl.c +++ b/fs/btrfs/acl.c @@ -244,6 +244,7 @@ int btrfs_init_acl(struct btrfs_trans_handle *trans, ACL_TYPE_ACCESS); } } + posix_acl_release(clone); } failed: posix_acl_release(acl);