diff mbox

btrfs:fix a memory leak in acl

Message ID 4B5E3BD7.9000001@cn.fujitsu.com (mailing list archive)
State Accepted
Headers show

Commit Message

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

Patch

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