Added missing frees

This commit is contained in:
wiire-a 2017-10-22 02:45:07 +02:00
parent 537dd74029
commit 9af4c43b73

View File

@ -121,6 +121,10 @@ static void *crack_thread(void *arg) {
if (seed < limit) break; if (seed < limit) break;
} }
} }
free(buf);
free(rand_statebuf);
return 0; return 0;
} }
@ -164,6 +168,7 @@ static uint32_t collect_crack_jobs() {
void* ret; void* ret;
pthread_join(job_control.crack_jobs[i].thr, &ret); pthread_join(job_control.crack_jobs[i].thr, &ret);
} }
free(job_control.crack_jobs);
return job_control.print_seed; return job_control.print_seed;
} }