mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-25 23:05:31 +02:00
Added missing frees
This commit is contained in:
parent
537dd74029
commit
9af4c43b73
@ -121,6 +121,10 @@ static void *crack_thread(void *arg) {
|
||||
if (seed < limit) break;
|
||||
}
|
||||
}
|
||||
|
||||
free(buf);
|
||||
free(rand_statebuf);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -164,6 +168,7 @@ static uint32_t collect_crack_jobs() {
|
||||
void* ret;
|
||||
pthread_join(job_control.crack_jobs[i].thr, &ret);
|
||||
}
|
||||
free(job_control.crack_jobs);
|
||||
return job_control.print_seed;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user