29 lines
801 B
Diff
29 lines
801 B
Diff
|
From ef568dad3da6887e656be617a178cbb69b36cdf3 Mon Sep 17 00:00:00 2001
|
||
|
From: Qu Wenruo <quwenruo@cn.fujitsu.com>
|
||
|
Date: Wed, 19 Mar 2014 06:10:02 +0000
|
||
|
Subject: [PATCH 27/42] 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>
|
||
|
---
|
||
|
cmds-fi-disk_usage.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/cmds-fi-disk_usage.c b/cmds-fi-disk_usage.c
|
||
|
index a3b06bebba72..2bd591db0f8a 100644
|
||
|
--- a/cmds-fi-disk_usage.c
|
||
|
+++ b/cmds-fi-disk_usage.c
|
||
|
@@ -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;
|
||
|
|
||
|
--
|
||
|
1.9.0
|
||
|
|