
14 Jan
2007
14 Jan
'07
4:43 p.m.
gchen wrote:
I am trying to enable BOOST_SP_USE_QUICK_ALLOCATOR while using shared_ptr, so to make shared_ptr to use quick_allocator to alloc/dealloc memory,
But it seems that quick_allocator never free the memory pool (blocks) after my program exits, do I miss something?
It doesn't. After your program exits, all memory is automatically freed by the OS. There's no need to free it explicitly, except maybe to keep simplistic leak checkers happy.