From: Al Viro Date: Sat, 23 Jul 2011 04:22:31 +0000 (-0400) Subject: ocfs2_init_acl(): fix a leak X-Git-Tag: v2.6.39-400.9.0~339^2~28 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bf0578debfec48999032c9e0bec7ccca127b81fa;p=users%2Fjedix%2Flinux-maple.git ocfs2_init_acl(): fix a leak Signed-off-by: Al Viro (cherry picked from commit c0d960f038bdfe0fa73c9f698ba836ed20b672c9) Signed-off-by: Xiaowei.Hu --- diff --git a/fs/ocfs2/acl.c b/fs/ocfs2/acl.c index e913ad130fdd..460c0dcd7f80 100644 --- a/fs/ocfs2/acl.c +++ b/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) {