diff mbox

btrfs - fix memory leak on finding existing super

Message ID 20101130133103.4661.35881.stgit@perseus.themaw.net (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Kent Nov. 30, 2010, 1:31 p.m. UTC
None
diff mbox

Patch

diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 47bf67c..f5cca1b 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -654,6 +654,8 @@  static int btrfs_get_sb(struct file_system_type *fs_type, int flags,
 		}
 
 		btrfs_close_devices(fs_devices);
+		kfree(fs_info);
+		kfree(tree_root);
 	} else {
 		char b[BDEVNAME_SIZE];