when you terminate a process the virtual memory associated with that process ceases to exist. any real memory associated with that process is not addressable anymore. if another process allocates a page that maps to a page previously held by the first process will get a zeroed-out page.
you should not worry about leaking keys after a program exit. this is not a GC concept, it's a modern operating system concept. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.