Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900