Ver Fonte

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>
Yang Hongyang há 16 anos atrás
pai
commit
f858153c36
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      fs/btrfs/acl.c

+ 1 - 0
fs/btrfs/acl.c

@@ -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);