btrfs: Mem leak in btrfs_get_acl()
authorJesper Juhl <jj@chaosbits.net>
Thu, 6 Jan 2011 21:45:21 +0000 (21:45 +0000)
committerChris Mason <chris.mason@oracle.com>
Sun, 16 Jan 2011 16:30:19 +0000 (11:30 -0500)
commit42838bb265b9cff3de9587fcacc398b5112dc2d9
tree4c0cfbe4f41004b096917ddf75ed7d74743a4af3
parent6d07bcec969af335d4e35b3921131b7929bd634e
btrfs: Mem leak in btrfs_get_acl()

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 <jj@chaosbits.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/acl.c