I ran my code and counted 10 memory leaks. The first one I spotted was that I was allocating a pointer to a char[], and not deleting it.
So at the end of the function I added
pChar = NULL;
delete[] pChar;
But I still have my memory leak at this point. Anyone comment why ?
K
So at the end of the function I added
pChar = NULL;
delete[] pChar;
But I still have my memory leak at this point. Anyone comment why ?
K