diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-04-04 13:44:13 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-04-04 13:44:13 +0200 |
commit | c1ce27d844cbd1f33ce3e3bb0c82a7ee74be86f4 (patch) | |
tree | bdd5cbeedb6a16d6b23575c9269627c4ec4f298e | |
parent | 4ea5424723f9d35da0f385c2c876a340ac66c805 (diff) |
indexamajig: Tidy up memory
-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]); |