diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2017-01-14 18:18:23 -0800 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2017-01-26 22:09:16 -0800 |
commit | 77a2eb52bf0022ab15f8c2ab2f645d22a227e5dd (patch) | |
tree | fd1935e04e68b4f204ebb6e6c20f94d17eb64862 /src/choices.c | |
parent | 3f70bef1df0c5b85c94e9d4ffea95b51e813160f (diff) |
Fix memory leak of job
Diffstat (limited to 'src/choices.c')
-rw-r--r-- | src/choices.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/choices.c b/src/choices.c index 2c789b6..1431551 100644 --- a/src/choices.c +++ b/src/choices.c @@ -241,6 +241,7 @@ void choices_search(choices_t *c, const char *search) { pthread_mutex_destroy(&job->lock); free(workers); + free(job); if(*search) { qsort(c->results, c->available, sizeof(struct scored_result), cmpchoice); |