http://qs321.pair.com?node_id=957528


in reply to Memory is not released back to operating system

Sorry, that's just the way your malloc() works. Some mallocs use mmap() for large allocations, to at least give the process a chance to return memory to the OS, but most hold onto memory until the process exits.