btrfs-progs: fix leak of "buf" in make_btrfs() error paths
authorEric Sandeen <sandeen@redhat.com>
Wed, 6 Nov 2013 23:15:45 +0000 (17:15 -0600)
committerChris Mason <chris.mason@fusionio.com>
Thu, 7 Nov 2013 21:10:41 +0000 (16:10 -0500)
commit0650c12576d3e3f046d70b3568025afda7700804
tree587f76f95ec44decc709feb239d3909cf1f14080
parent9dc137918f3a3346bb2c6ef3de6033d5688c037b
btrfs-progs: fix leak of "buf" in make_btrfs() error paths

If any pwrite failed we leaked the allocated "buf" on
return from the function.  "goto out" takes care of
those paths.

Resolves-Coverity-CID: 1125938
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
utils.c