Btrfs: fix memory leak in btrfs_create_tree()
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Thu, 21 Mar 2013 04:32:32 +0000 (04:32 +0000)
committerChris Mason <chris.mason@fusionio.com>
Thu, 21 Mar 2013 23:31:52 +0000 (19:31 -0400)
commit1dd05682b3ef6e70409e130bfd83e91770801589
tree778cbfa572ad33981b6ba077b99861675e476fc9
parentd9abbf1c3131b679379762700201ae69367f3f62
Btrfs: fix memory leak in btrfs_create_tree()

We should free leaf and root before returning from the error
handling code.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/disk-io.c