btrfs-progs: avoid double-free in __btrfs_map_block
authorEric Sandeen <sandeen@redhat.com>
Mon, 25 Feb 2013 22:54:38 +0000 (16:54 -0600)
committerDavid Sterba <dsterba@suse.cz>
Wed, 27 Feb 2013 13:39:31 +0000 (14:39 +0100)
commitbbf1919b007c7d7ca88bce2cda500a403cfa7a7e
tree0742c430b383dc1e3e21032ecbd0fb14bd1565f2
parentb808cb66aa7e68bfadfc73f8e5191d284413e3d1
btrfs-progs: avoid double-free in __btrfs_map_block

__btrfs_map_block() can possibly do the goto again: loop after
having allocated & freed the "multi" pointer.  There are then
a couple error conditions where it will attempt to again kfree
the now non-NULL multi pointer.  So before retrying, reset
multi to NULL after we free it.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
volumes.c