Re: [PATCH] btrfs: Mem leak in btrfs_get_acl()

2011-01-08 Thread Jesper Juhl
On Fri, 7 Jan 2011, Aneesh Kumar K. V wrote: On Thu, 6 Jan 2011 22:45:21 +0100 (CET), Jesper Juhl j...@chaosbits.net wrote: It seems to me that we leak the memory allocated to 'value' in btrfs_get_acl() if the call to posix_acl_from_xattr() fails. Here's a patch that attempts to

Re: [PATCH] btrfs: Mem leak in btrfs_get_acl()

2011-01-07 Thread Aneesh Kumar K. V
On Thu, 6 Jan 2011 22:45:21 +0100 (CET), Jesper Juhl j...@chaosbits.net wrote: It seems to me that we leak the memory allocated to 'value' in btrfs_get_acl() if the call to posix_acl_from_xattr() fails. Here's a patch that attempts to correct that problem. Signed-off-by: Jesper Juhl

[PATCH] btrfs: Mem leak in btrfs_get_acl()

2011-01-06 Thread Jesper Juhl
It seems to me that we leak the memory allocated to 'value' in btrfs_get_acl() if the call to posix_acl_from_xattr() fails. Here's a patch that attempts to correct that problem. Signed-off-by: Jesper Juhl j...@chaosbits.net --- acl.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)