Hello! On Thu, May 18, 2017 at 10:23:18AM -0700, Dk Jack wrote:
> I just want to release memory l've allocated. One more question, > is the context memory automatically removed or is the module > responsible for freeing it. Anything you allocate from request pool (r->pool) using ngx_p*alloc() functions is automatically freeded when the request pool is destroyed. If you allocate memory directly from OS, you are responsible to free it yourself (though this shouldn't happen except in very special cases). -- Maxim Dounin http://nginx.org/ _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel