Possible Duplicate:
Windows 7 cleans up C++ memory leaks?
I’m discussing a case with coworkers where an exceptional case causes a Windows C++ application to exit rapidly, and the nature of our code means this seems likely to cause memory leaks.
If the application is closing down anyway, does this matter? Will leaked memory be returned to the system when the process ends?
Yes system will claim back the dynamic allocated memory. Some system resources will won’t be released, for example: shared memory.