btrfs-progs: free leaked roots in calc-size
authorZach Brown <zab@redhat.com>
Mon, 7 Oct 2013 21:43:05 +0000 (14:43 -0700)
committerChris Mason <chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:23:13 +0000 (08:23 -0400)
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>
btrfs-calc-size.c

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