All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] btrfs-progs: Fix memleak in get_raid56_used()
@ 2014-03-19  6:10 quwenruo
  2014-03-19  6:10 ` [PATCH 2/3] btrfs-progs: Fix minor problems in man page of btrfs quwenruo
  2014-03-19  6:10 ` [PATCH 3/3] btrfs-progs: Modify the help string to keep consistent with man page quwenruo
  0 siblings, 2 replies; 3+ messages in thread
From: quwenruo @ 2014-03-19  6:10 UTC (permalink / raw)
  To: linux-btrfs

Fix memleak in get_raid56_used().

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
---
 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 a3b06be..2bd591d 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-19  6:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-19  6:10 [PATCH 1/3] btrfs-progs: Fix memleak in get_raid56_used() quwenruo
2014-03-19  6:10 ` [PATCH 2/3] btrfs-progs: Fix minor problems in man page of btrfs quwenruo
2014-03-19  6:10 ` [PATCH 3/3] btrfs-progs: Modify the help string to keep consistent with man page quwenruo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.