Original Post
Yes I am anal about freeing every drop of dynamic memory I happen to allocate after I''m done. However, while briefly browsing through the Quake3 tool source, I noticed that the program calls exit() without concern for any sort of deallocation with free(). Leading to some gray areas for me...
Questions:
1. Does the Windows OS automatically deallocate all memory (allocated with malloc()) for a process after it exits without crash? How about with a crash?
And if so...
2. What versions of Windows does this apply to? Does it also apply to any application types (ie. console, win32 app, etc.)?
3. This doesn''t apply to new/delete operators correct? I assume not calling delete after new is still a big no-no to avoid.
Some insight is appreciated.