﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
490	ngx_reset_pool() memory wastage	Ravi Chunduru		"ngx_reset_pool() seems to free up large buffers and sets d.last to start of available memory location.

   for (p = pool; p; p = p->d.next) {
        p->d.last = (u_char *) p + sizeof(ngx_pool_t);
    }

But it does not reset p->d.failed to zero and does not set p->d.current= pool for the first memory block.
Now that p->d.current points to the latest memory block in the pool, all the previous memory blocks in the pool go wasted. "	defect	closed	minor		nginx-core		fixed				all versions
