Re: ngx_http_cleanup_add

2021-11-10 Thread Dk Jack
Thanks Maxim, Thanks for the suggestion about using ngx_pool_cleanup_add. Since this is external library memory I couldn't use ngx_pcalloc. Thanks again. On Wed, Nov 10, 2021 at 7:47 PM Maxim Dounin wrote: > Hello! > > On Wed, Nov 10, 2021 at 07:22:50PM -0800, Dk Jack wrote: > > > Hi, > > In my

Re: ngx_http_cleanup_add

2021-11-10 Thread Maxim Dounin
Hello! On Wed, Nov 10, 2021 at 07:22:50PM -0800, Dk Jack wrote: > Hi, > In my module, I am allocating some memory for each request and saving the > ptr in my module context. I am registering a callback using > ngx_http_cleanup_add to perform cleanup for each request. I am releasing > the memory f