diff mbox

Btrfs: fix memory leak in free_log_tree

Message ID 4CAD8335.8040707@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

liubo Oct. 7, 2010, 8:22 a.m. UTC
None
diff mbox

Patch

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);
 }