Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Nov 2009 21:42:02 +0100
From:      Gary Jennejohn <gary.jennejohn@freenet.de>
To:        volker@vwsoft.com
Cc:        freebsd-hackers@freebsd.org, Jim Wilcoxson <prirun@gmail.com>
Subject:   Re: acl_from_text leaking memory
Message-ID:  <20091116214202.480a0aa7@ernst.jennejohn.org>
In-Reply-To: <4B01B23F.8040002@vwsoft.com>
References:  <c5830b750911150804i694b00aai891819242816e89c@mail.gmail.com> <c5830b750911150847r3698b21ey819d4de3312ef78d@mail.gmail.com> <4B01B23F.8040002@vwsoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 16 Nov 2009 21:12:47 +0100
volker@vwsoft.com wrote:

> you may want to have a look at the manpage acl_from_text(3):
> 
> "...This function may cause memory to be allocated.  The caller should
> free any releasable memory, when the new ACL is no longer required, by
> calling acl_free(3) with the (void *)acl_t as an argument."
> 
> Please use an acl_free(void *obj_p) call afterwards to avoid leaking memory.
> 

The suggested fix was appplied to HEAD today.  Apparently, the man page should
now be updated.

---
Gary Jennejohn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091116214202.480a0aa7>