From this answer: http://stackoverflow.com/questions/1058797/when-is-a-c-terminate-handler-the-right-thingtm/1058894#1058894
It would be nice to have a list of resources that 'are' and 'are not' automatically cleaned up by the OS when an application quits. In your answer it would be nice if you can specify the OS/resource and preferably a link to some documentaiton (if appropriate).
The obvious one:
Memory: Yes automatically cleaned up. Question. Are there any exceptions?