Welcome! Log In Create A New Profile

Advanced

free the last allocation in a pool

Peter Leonov
May 04, 2010 06:22AM
Hi, again,

When a module needs some memory just for a temporary buffer, it comes to this:
buf = ngx_pnalloc(pool, len);

When the work is done, it is good to free the memory ;)
As far as ngx_pfree() tries to free the “large” blocks only it can't be used for a small allocation.
Could you please tell me, is there a way to free the last small block of memory?

Thanks,
Peter.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

free the last allocation in a pool

Peter Leonov 2735 May 04, 2010 06:22AM

Re: free the last allocation in a pool

Denis F. Latypoff 1061 May 04, 2010 07:42AM

Re: free the last allocation in a pool

Peter Leonov 1344 May 04, 2010 08:38AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 288
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready