in reply to Do subroutine variables get destroyed?

Think of my a dynamic memory allocator (like "new" in other languages). The allocated variable will be freed when there are no more reference to it.