ocfs2_init_acl(): fix a leak
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 23 Jul 2011 04:22:31 +0000 (00:22 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Jul 2011 14:10:09 +0000 (10:10 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/acl.c

index 1cee970eb55a520e258434125c21466cc6160acb..f4cf451ce6e87bbae2759564c799c2539462851b 100644 (file)
@@ -409,6 +409,7 @@ int ocfs2_init_acl(handle_t *handle,
                        if (ret2) {
                                mlog_errno(ret2);
                                ret = ret2;
+                               posix_acl_release(clone);
                                goto cleanup;
                        }
                        if (ret > 0) {