Use the correct version of delete within a unit test
This fixes valgrind warnings when running this test. The mismatched delete could also potentially have caused memory corruption issues while running the tests.
This commit is contained in:
@@ -405,7 +405,7 @@ int SimulateNALLoss (const unsigned char* pSrc, int& iSrcLen, std::vector<SLost
|
||||
memset ((void*)pSrc, 0, iSrcLen);
|
||||
memcpy ((void*)pSrc, pDst, iDstLen);
|
||||
iSrcLen = iDstLen;
|
||||
delete pDst;
|
||||
delete [] pDst;
|
||||
return iSkipedBytes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user