When I use the following code, it detects a memory leak. How can I make it not?
_CrtMemState startState;
_CrtMemState endState;
_CrtMemState temp;
_CrtMemCheckpoint(&startState);
const char* foo = "I'm not leaking memory! Stop saying I am!";
_CrtMemCheckpoint(&endState);
_CrtMemDifference(&temp, &startState, &endState); // Returns true. Wtf?