I believe it doesn't it doesn't.
You can find out yourself however.
Place the following at the top of the function
_tmain
#if defined(DEBUG) | defined(_DEBUG)
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif
In short, this will print memory leaks if there are any to the Output Window (where you see the compiling progress and loaded modules). If nothing is printed, there are no leaks.
I would recommend putting this as early as possible in every program that you write.
It will help you find memory leaks. If you put it in when you start the project it will narrow down the possibilities of where it could be.
If any leaks are found, a number and small portion of the data is printed.
if you use the function
_CrtSetBreakAlloc(the_number);
it will break the program when that memory block is getting allocated.