From: Jie Liu Date: Wed, 11 Sep 2013 21:19:53 +0000 (-0700) Subject: ocfs2: fix a memory leak in __ocfs2_move_extents() X-Git-Tag: v3.12-rc1~52^2~288 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=4704aa30fc35010dd9c3ce1d9d2e77af09c2c081;p=linux-2.6-block.git 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 Reviewed-by: Younger Liu Cc: Joel Becker Cc: Mark Fasheh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ocfs2/move_extents.c b/fs/ocfs2/move_extents.c index 415928536c5e..3d3f3c83065c 100644 --- a/fs/ocfs2/move_extents.c +++ b/fs/ocfs2/move_extents.c @@ -152,6 +152,7 @@ static int __ocfs2_move_extent(handle_t *handle, } out: + ocfs2_free_path(path); return ret; }