mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-04-24 09:56:36 +02:00
free memory
This commit is contained in:
parent
64f805e615
commit
cb2a965907
1 changed files with 8 additions and 1 deletions
|
@ -191,12 +191,19 @@ Orignal is sensei of crypto ;)
|
||||||
std::cout << "Address found " << addr << " in " << id_thread << std::endl;
|
std::cout << "Address found " << addr << " in " << id_thread << std::endl;
|
||||||
found=true;
|
found=true;
|
||||||
FoundNonce=*nonce;
|
FoundNonce=*nonce;
|
||||||
|
free(hash);
|
||||||
|
free(b);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
(*nonce)++;
|
(*nonce)++;
|
||||||
hashescounter++;
|
hashescounter++;
|
||||||
if (found) break;
|
if (found){
|
||||||
|
free(hash);
|
||||||
|
free(b);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
}//while
|
}//while
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue