mirror of
https://github.com/PurpleI2P/i2pd-tools
synced 2025-01-15 17:20:08 +00:00
maybe a fix memory leak
This commit is contained in:
parent
2d06872f52
commit
57c0ca9d40
4
vain.cpp
4
vain.cpp
@ -405,6 +405,10 @@ int main (int argc, char * argv[])
|
|||||||
{
|
{
|
||||||
//keys = i2p::data::PrivateKeys::CreateRandomKeys (options.signature);
|
//keys = i2p::data::PrivateKeys::CreateRandomKeys (options.signature);
|
||||||
//RAND_bytes( KeyBuf+MutateByte , 90 ); // FoundNonce is
|
//RAND_bytes( KeyBuf+MutateByte , 90 ); // FoundNonce is
|
||||||
|
|
||||||
|
for (unsigned i = options.threads-1;i--;)
|
||||||
|
delete [] KeyBufs[i];
|
||||||
|
delete [] KeyBufs;
|
||||||
std::cout << "(Generate a new keypair) Attempts #" << ++attempts << std::endl;
|
std::cout << "(Generate a new keypair) Attempts #" << ++attempts << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user