memory leak in vector <int>
I implement a vector which reads in integers by
Code:
v.push_back(item); // add item to end of vector
When my program ends, I call to clear v
But I have memory leak from it.
Code:
Detected memory leaks!
Dumping objects ->
{132} normal block at 0x0035CD10, 36 bytes long.
Data: < > 02 00 00 00 03 00 00 00 04 00 00 00 05 00 00 00
Object dump complete.
Why is it so? I check my memory leak by using
Code:
#include <crtdbg.h>
_CrtDumpMemoryLeaks();
in Microsoft Visual Studio 2005