Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -269,6 +269,7 @@ int btrfs_init_acl(struct btrfs_trans_handle *trans,
						    ACL_TYPE_ACCESS);
						    ACL_TYPE_ACCESS);
			}
			}
		}
		}
		posix_acl_release(clone);
	}
	}
failed:
failed:
	posix_acl_release(acl);
	posix_acl_release(acl);