Re: [PATCH] btrfs: fix memory leak in update_space_info failure path
On Wed, May 17, 2017 at 09:49:37AM -0400, je...@suse.com wrote: > From: Jeff Mahoney> > If we fail to add the space_info kobject, we'll leak the memory > for the percpu counter. > > Fixes: 6ab0a2029c (btrfs: publish allocation data in sysfs) > Cc: #
[PATCH] btrfs: fix memory leak in update_space_info failure path
From: Jeff MahoneyIf we fail to add the space_info kobject, we'll leak the memory for the percpu counter. Fixes: 6ab0a2029c (btrfs: publish allocation data in sysfs) Cc: # v3.14+ Signed-off-by: Jeff Mahoney --- fs/btrfs/extent-tree.c |