There are (older) OSes where this is NOT the case. Leaving things un-freed would leak memory after the application has terminated.
Sure, like prior to the invention of virtual memory. But those days are in the distant past.
Sure, like prior to the invention of virtual memory. But those days are in the distant past.