Btrfs: fix a memory leak in btrfs_init_acl
[safe/jmp/linux-2.6] / fs / btrfs / acl.c
index fa44e92..da3133c 100644 (file)
@@ -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);