Btrfs, fix memory leaks in error paths
authorJiri Slaby <jslaby@suse.cz>
Wed, 6 Jan 2010 16:57:22 +0000 (16:57 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 18 Jan 2010 01:40:20 +0000 (20:40 -0500)
commit2423fdfb96e3f9ff3baeb6c4c78d74145547891d
treea47f7712849dd9ab5c4a1c3371511e072abcdb29
parenta038fab0cb873c75d6675e2bcffce8a3935bdce7
Btrfs, fix memory leaks in error paths

Stanse found 2 memory leaks in relocate_block_group and
__btrfs_map_block. cluster and multi are not freed/assigned on all
paths. Fix that.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: linux-btrfs@vger.kernel.org
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/relocation.c
fs/btrfs/volumes.c