* [Ocfs2-devel] [PATCH] ocfs2: fix a memory leak at __ocfs2_move_extents()
@ 2013-08-06 6:24 Jeff Liu
2013-08-06 8:39 ` Younger Liu
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Liu @ 2013-08-06 6:24 UTC (permalink / raw)
To: ocfs2-devel
From: Jie Liu <jeff.liu@oracle.com>
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 <younger.liu@huawei.com>
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
---
fs/ocfs2/move_extents.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/ocfs2/move_extents.c b/fs/ocfs2/move_extents.c
index f1fc172..37231d1 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;
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Ocfs2-devel] [PATCH] ocfs2: fix a memory leak at __ocfs2_move_extents()
2013-08-06 6:24 [Ocfs2-devel] [PATCH] ocfs2: fix a memory leak at __ocfs2_move_extents() Jeff Liu
@ 2013-08-06 8:39 ` Younger Liu
0 siblings, 0 replies; 2+ messages in thread
From: Younger Liu @ 2013-08-06 8:39 UTC (permalink / raw)
To: ocfs2-devel
On 2013/8/6 14:24, Jeff Liu wrote:
> From: Jie Liu <jeff.liu@oracle.com>
>
> 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 <younger.liu@huawei.com>
> Signed-off-by: Jie Liu <jeff.liu@oracle.com>
This patch looks fine to me.
Reviewed-by: Younger Liu <younger.liu@huawei.com>
> ---
> fs/ocfs2/move_extents.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/ocfs2/move_extents.c b/fs/ocfs2/move_extents.c
> index f1fc172..37231d1 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;
> }
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-06 8:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-06 6:24 [Ocfs2-devel] [PATCH] ocfs2: fix a memory leak at __ocfs2_move_extents() Jeff Liu
2013-08-06 8:39 ` Younger Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.