btrfs-progs: free eb in fixup_chunk_tree_block()
authorZach Brown <zab@redhat.com>
Mon, 7 Oct 2013 21:43:00 +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-image.c

index c316a6426d6ca8463d694e406dabbecf52ef1059..40ed483180ed8dd260ce6ab1ed1747ae30083246 100644 (file)
@@ -1541,6 +1541,7 @@ next:
                bytenr += mdres->leafsize;
        }
 
+       free(eb);
        return 0;
 }