Maxim Dounin
April 18, 2023 02:44PM
Hello!

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
destroyed.

See here for more details about memory pools:

http://nginx.org/en/docs/dev/development_guide.html#pool

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

ngx_list_free

Yuval Abadi via nginx April 18, 2023 02:16AM

Re: ngx_list_free

Maxim Dounin April 18, 2023 08:36AM

RE: ngx_list_free

Yuval Abadi via nginx April 18, 2023 11:14AM

Re: ngx_list_free

Maxim Dounin April 18, 2023 02:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready