Hi
Please look at this small piece of code:
char* pArray = new someArray[128];
delete pArray;
deleta[] pArray;
Will this generate a mem leak?
"delete pArray" wil deallocate only the first char of someArray but will "delete[] pArray" deallocate the rest of someArray or will the compiler see it as already deallocated because the first char i missing?
The code example is only for demonstration and not some of my real code:icon_lol:
/Jacob