Btrfs: fix a memory leak in btrfs_init_acl
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>
This commit is contained in:
parent
d1ea6a6145
commit
f858153c36
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue