[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: openlog
- From: Matthew Wild <mwild1@...>
- Date: Tue, 13 Aug 2013 14:29:48 +0100
On 13 August 2013 14:13, dcharno <firstname.lastname@example.org> wrote:
> The GNU libc manual says the pointer to ident in openlog is retained and the memory shouldn't be freed. I noticed the openlog binding in luaposix doesn't do anything special to make sure the string isn't garbage collected and neither do most FFI bindings for syslog. I haven't experienced a problem (yet) so maybe it isn't an issue. How do people handle this in their bindings.
This is one of the reasons we're not using luaposix in Prosody yet. We
use this code, which works for us so far:
It would be nice to handle this well in luaposix.