7 messages in ru.sysoev.nginxRe: some extensions for nginx
FromSent OnAttachments
Manlio PerilloAug 21, 2007 4:04 am 
Manlio PerilloAug 21, 2007 4:15 am 
Igor SysoevAug 21, 2007 4:25 am 
Manlio PerilloAug 21, 2007 4:33 am 
Igor SysoevAug 21, 2007 5:02 am 
Manlio PerilloAug 21, 2007 6:21 am 
Igor SysoevAug 21, 2007 6:47 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: some extensions for nginxActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Aug 21, 2007 6:47:26 am
List:ru.sysoev.nginx

On Tue, Aug 21, 2007 at 03:22:09PM +0200, Manlio Perillo wrote:

Igor Sysoev ha scritto:

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.

How are they freed? With a garbage collector?

On the end of request, connection, nginx life cycle depending on pool life.

Another question What happens if, as an example, I do something like: out.buf = b; out.next = NULL;

b->pos = "hello world"; b->last = "hello world" + 10;

if b->pos was not allocated from pool it will not freed. BTW, b->last has incorrect value;