acl_from_text leaking memory
Gary Jennejohn
gary.jennejohn at freenet.de
Mon Nov 16 20:42:06 UTC 2009
On Mon, 16 Nov 2009 21:12:47 +0100
volker at 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
More information about the freebsd-hackers
mailing list