Commit f858153c authored by Yang Hongyang's avatar Yang Hongyang Committed by Chris Mason

Btrfs: fix a memory leak in btrfs_init_acl

In btrfs_init_acl() cloned acl is not released
Signed-off-by: default avatarYang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent d1ea6a61
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment