ocfs2: fix a memory leak in __ocfs2_move_extents()
authorJie Liu <jeff.liu@oracle.com>
Wed, 11 Sep 2013 21:19:53 +0000 (14:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:56:44 +0000 (15:56 -0700)
commit4704aa30fc35010dd9c3ce1d9d2e77af09c2c081
tree9a506a85ce98233f7b5092fb6f57793d2922046a
parent2b0f6eae2dd2f7f21dbf93241938a687f6757dea
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: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Younger Liu <younger.liu@huawei.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/move_extents.c