提交 4704aa30 编写于 作者: J Jie Liu 提交者: Linus Torvalds

ocfs2: fix a memory leak in __ocfs2_move_extents()

The ocfs2 path is not properly freed which leads to a memory leak at
__ocfs2_move_extents().

This patch stops the leaks of the ocfs2_path structure.
Signed-off-by: NJie Liu <jeff.liu@oracle.com>
Reviewed-by: NYounger Liu <younger.liu@huawei.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 2b0f6eae
......@@ -152,6 +152,7 @@ static int __ocfs2_move_extent(handle_t *handle,
}
out:
ocfs2_free_path(path);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册