Skip to content

Commit

Permalink
Merge pull request #58 from RandGenXYZ/patch-1
Browse files Browse the repository at this point in the history
Free the program after use
  • Loading branch information
cjdelisle authored Nov 16, 2022
2 parents ee4a421 + c0d0c66 commit 866ffc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packetcrypt-sys/packetcrypt/src/AnnMiner.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -406,4 +408,4 @@ double AnnMiner_hashesPerSecond(AnnMiner_t* ctx)
hashes /= (double) micros;
hashes *= 1000000.0;
return hashes;
}
}

0 comments on commit 866ffc1

Please sign in to comment.