In SGI STL, if define __USE_MALLOC,then just use malloc and free to manage memory,else use __default_alloc_template
to manage memory. When I reference the source code, I think I find a 'bug': the memory allocated by __default_alloc_template never returns back to system until the process ends. Is this a bug?
In my opinion, the memory should be returned to system when no longer needed. the implementation of SGI STL really puzzled me.
Really appreciate for your help. thanks in advance.