diff --git a/packetcrypt-sys/packetcrypt/src/AnnMiner.c b/packetcrypt-sys/packetcrypt/src/AnnMiner.c index 697ca56..1bdf850 100644 --- a/packetcrypt-sys/packetcrypt/src/AnnMiner.c +++ b/packetcrypt-sys/packetcrypt/src/AnnMiner.c @@ -157,6 +157,8 @@ static int populateTableJIT(Worker_t* w, Buf64_t* seed) { if (getRequestedState(w) != ThreadState_RUNNING) { return -1; } rh_make_item(i, &w->job.table[i], w->vctx, &seed->thirtytwos[1], program); } + + rh_free_program(program); return 0; } @@ -406,4 +408,4 @@ double AnnMiner_hashesPerSecond(AnnMiner_t* ctx) hashes /= (double) micros; hashes *= 1000000.0; return hashes; -} \ No newline at end of file +}