[Ocfs2-devel] [patch 13/22] ocfs2: fix a memory leak in __ocfs2_move_extents()
akpm at linux-foundation.org
akpm at linux-foundation.org
Tue Aug 27 14:05:06 PDT 2013
From: Jie Liu <jeff.liu at oracle.com>
Subject: 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 at oracle.com>
Reviewed-by: Younger Liu <younger.liu at huawei.com>
Cc: Joel Becker <jlbec at evilplan.org>
Cc: Mark Fasheh <mfasheh at suse.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
---
fs/ocfs2/move_extents.c | 1 +
1 file changed, 1 insertion(+)
diff -puN fs/ocfs2/move_extents.c~ocfs2-fix-a-memory-leak-in-__ocfs2_move_extents fs/ocfs2/move_extents.c
--- a/fs/ocfs2/move_extents.c~ocfs2-fix-a-memory-leak-in-__ocfs2_move_extents
+++ a/fs/ocfs2/move_extents.c
@@ -152,6 +152,7 @@ static int __ocfs2_move_extent(handle_t
}
out:
+ ocfs2_free_path(path);
return ret;
}
_
More information about the Ocfs2-devel
mailing list