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>
This commit is contained in:
Zach Brown 2013-10-07 14:43:05 -07:00 committed by Chris Mason
parent 59b772c959
commit f539dbb3e5

View File

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