btrfs-progs: free leaked roots in calc-size

This was found by static analysis.

Signed-off-by: Zach Brown <zab@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
master
Zach Brown 2013-10-07 14:43:05 -07:00 committed by Chris Mason
parent 59b772c959
commit f539dbb3e5
1 changed files with 1 additions and 0 deletions

View File

@ -508,5 +508,6 @@ int main(int argc, char **argv)
goto out;
out:
close_ctree(root);
free(roots);
return ret;
}