diff options
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 03dc23b0..57a41930 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -641,7 +641,7 @@ int main(int argc, char *argv[]) struct process_result *result = NULL; - if ( !worker_active[i] ) continue; + if ( !worker_active[i] ) goto free; pthread_join(workers[i], (void *)&result); @@ -652,6 +652,7 @@ int main(int argc, char *argv[]) free(result); } + free: free(worker_args[i]->filename); free(worker_args[i]); |