瀏覽代碼

ocfs2_init_acl(): fix a leak

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 14 年之前
父節點
當前提交
c0d960f038
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/ocfs2/acl.c

+ 1 - 0
fs/ocfs2/acl.c

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