free memory

This commit is contained in:
Warlock-Dalbaeb 2017-08-16 09:03:31 +07:00
parent 64f805e615
commit cb2a965907

View file

@ -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
} }