btrfs:fix a memory leak in acl
diff mbox

Message ID 4B5E3BD7.9000001@cn.fujitsu.com
State Accepted
Headers show

Commit Message

Yang Hongyang Jan. 26, 2010, 12:48 a.m. UTC
None

Patch
diff mbox

diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c
index 54f4798..6df6d6e 100644
--- a/fs/btrfs/acl.c
+++ b/fs/btrfs/acl.c
@@ -244,6 +244,7 @@  int btrfs_init_acl(struct btrfs_trans_handle *trans,
 						    ACL_TYPE_ACCESS);
 			}
 		}
+		posix_acl_release(clone);
 	}
 failed:
 	posix_acl_release(acl);