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>
This commit is contained in:
Jiri Slaby 2010-01-06 16:57:22 +00:00 • committed by Chris Mason
commit 2423fdfb96
2 changed files with 6 additions and 2 deletions