ocfs2: fix a memory leak at __ocfs2_move_extents()
PATCH 1/1 ocfs2: fix a memory leak at __ocfs2_move_extents()
From: Jie Liu <[email protected]>
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.
Cc Younger Liu <[email protected]>
Signed-off-by Jie Liu <[email protected]>
--- fs/ocfs2/move_extents.c | 1 + 1 file changed, 1 insertion(+)
fs/ocfs2/move_extents.c +1 -0
@@ -152,6 +152,7 @@ static int __ocfs2_move_extent(handle_t *handle, } out: +ocfs2_free_path (path);return ret; }
Signature · 1 line
1.7.9.5
PATCH 1/1 ocfs2: fix a memory leak at __ocfs2_move_extents()
Quoted 9 lines · Jeff Liu
From: Jie Liu <[email protected]>
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_pathstructure.Cc Younger Liu <[email protected]>Signed-off-by Jie Liu <[email protected]>
This patch looks fine to me.
Reviewed-by Younger Liu <[email protected]>
Quoted 17 lines
--- fs/ocfs2/move_extents.c | 1 + 1 file changed, 1 insertion(+)fs/ocfs2/move_extents.c +1
-0@@ -152,6 +152,7 @@ static int __ocfs2_move_extent(handle_t *handle, } out: +ocfs2_free_path (path);return ret; }