Potential memory leak
artemlos opened this issue · 1 comments
artemlos commented
There is a potential memory leak on in https://github.com/Cryptolens/cryptolens-cpp/blob/master/src/MachineCodeComputer_COM.cpp#L362
size_t SHA1(basic_Error & e, std::wstring const& data, std::string & append)
{
.
.
.
if (!(pbHash = (BYTE*)malloc(dwHashLen)))
.
.
.
}
free(pbHash)
appears to be missing.