Skip to content

Commit

Permalink
Btrfs: fix a memory leak in btrfs_init_acl
Browse files Browse the repository at this point in the history
In btrfs_init_acl() cloned acl is not released

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Yang Hongyang authored and Chris Mason committed Jan 28, 2010
1 parent d1ea6a6 commit f858153
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/btrfs/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ int btrfs_init_acl(struct btrfs_trans_handle *trans,
ACL_TYPE_ACCESS);
}
}
posix_acl_release(clone);
}
failed:
posix_acl_release(acl);
Expand Down

0 comments on commit f858153

Please sign in to comment.