mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2025-01-09 20:44:11 +08:00
btrfs-progs: Fix memleak in get_raid56_used()
Fix memleak in get_raid56_used(). Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
07f114307f
commit
7c7fd19b8d
@ -352,6 +352,7 @@ static int get_raid56_used(int fd, u64 *raid5_used, u64 *raid6_used)
|
||||
if (p->type & BTRFS_BLOCK_GROUP_RAID6)
|
||||
(*raid6_used) += p->size / (p->num_stripes -2);
|
||||
}
|
||||
free(info_ptr);
|
||||
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user