aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-04-04 13:44:13 +0200
committerThomas White <taw@bitwiz.org.uk>2010-04-04 13:44:13 +0200
commitc1ce27d844cbd1f33ce3e3bb0c82a7ee74be86f4 (patch)
treebdd5cbeedb6a16d6b23575c9269627c4ec4f298e
parent4ea5424723f9d35da0f385c2c876a340ac66c805 (diff)
indexamajig: Tidy up memory
-rw-r--r--src/indexamajig.c3
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]);