Maxim Dounin mdounin at
Tue Apr 18 18:43:20 UTC 2023


On Tue, Apr 18, 2023 at 03:12:08PM +0000, Yuval Abadi via nginx wrote:

> Thanks
> I just need  list   not queue,

Queue is a double-linked list.

> And I want to free the whole list , not one node.

In nginx, memory allocations use pools, and in most cases you 
cannot free individual allocations.  The only options is to 
destroy the whole pool.

For example, this naturally works with requests: all allocations 
related to a request are done from the request pool, and are 
automatically freed when the request is freed and its pool is 

See here for more details about memory pools:

Maxim Dounin

More information about the nginx mailing list