I know in c++ delete a newed array by using delete[]. What I am wondering is, what if I just do delete without []. I saw something like this in our company code. And it does no crash the system. Is this also right?
u_char* binBuf2 = new u_char[bitCount + 1];
delete binBuf2;
thanks