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

From: Jesper Juhl
Date: Sat Jan 08 2011 - 15:26:19 EST


On Fri, 7 Jan 2011, Aneesh Kumar K. V wrote:

> On Thu, 6 Jan 2011 22:45:21 +0100 (CET), Jesper Juhl <jj@xxxxxxxxxxxxx> 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 <jj@xxxxxxxxxxxxx>
>
> I posted a similar patch long time back. But never got picked up
>
> http://article.gmane.org/gmane.comp.file-systems.btrfs/6164
>
> Message-id:"1279547924-25141-1-git-send-email-aneesh.kumar@xxxxxxxxxxxxxxxxxx"
>

I see. Was not aware of that.
Ok, since they are identical and yours was posted first, yours should be
the one merged (if any) I think.

--
Jesper Juhl <jj@xxxxxxxxxxxxx> http://www.chaosbits.net/
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/