Cryptolens/cryptolens-cpp

Potential memory leak

artemlos opened this issue · 1 comments

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.

svedi commented

Fixed in 80a8212