releasing memory.
Maxim Dounin
mdounin at mdounin.ru
Thu May 18 17:57:09 UTC 2017
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/
More information about the nginx-devel
mailing list