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.
In Section
Seekers of Perl Wisdom