projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b0f6ea
)
ocfs2: fix a memory leak in __ocfs2_move_extents()
author
Jie Liu
<
[email protected]
>
Wed, 11 Sep 2013 21:19:53 +0000
(14:19 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Sep 2013 22:56:44 +0000
(15:56 -0700)
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 <
[email protected]
>
Reviewed-by: Younger Liu <
[email protected]
>
Cc: Joel Becker <
[email protected]
>
Cc: Mark Fasheh <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/ocfs2/move_extents.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/move_extents.c
b/fs/ocfs2/move_extents.c
index 415928536c5e91185cbe2833ecc4757097fc05b5..3d3f3c83065ca3ed51d9dac690bac2e2012a36f9 100644
(file)
--- 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;
}