diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-11-06 17:15:45 -0600 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-07 16:10:41 -0500 |
commit | 0650c12576d3e3f046d70b3568025afda7700804 (patch) | |
tree | 587f76f95ec44decc709feb239d3909cf1f14080 /mkfs.c | |
parent | 9dc137918f3a3346bb2c6ef3de6033d5688c037b (diff) |
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>
Diffstat (limited to 'mkfs.c')
0 files changed, 0 insertions, 0 deletions