* [PATCH] Btrfs: fix memory leak in free_log_tree
@ 2010-10-07 8:22 liubo
0 siblings, 0 replies; only message in thread
From: liubo @ 2010-10-07 8:22 UTC (permalink / raw)
To: Linux Btrfs
To avoid memory leak, log->commit_root should be free, too.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
---
fs/btrfs/tree-log.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 2c3ed40..f2465f1 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -2124,6 +2124,7 @@ static void free_log_tree(struct btrfs_trans_handle *trans,
}
free_extent_buffer(log->node);
+ free_extent_buffer(log->commit_root);
kfree(log);
}
--
1.6.2.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-10-07 8:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-07 8:22 [PATCH] Btrfs: fix memory leak in free_log_tree liubo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).