some extensions for nginx

Igor Sysoev is at
Tue Aug 21 15:26:05 MSD 2007

On Tue, Aug 21, 2007 at 01:15:25PM +0200, Manlio Perillo wrote:

> Manlio Perillo ha scritto:
> >Hi Igor.
> >
> >I have wrote some reusable functions for dealing with "foreign" C 
> >libraries.
> >
> >You can find the code here:
> >
> >
> I have a question: should I deallocate the memory for the "original" string?

If allocation is made from a pool, then you do not need to free it.

BTW, in ngx_conf_set_c_str_slot() value[1].data points to already
zero-terminated string, so you do not need to reallocated it.

Igor Sysoev

More information about the nginx mailing list