aboutsummaryrefslogtreecommitdiff
path: root/src/cubeit.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-10-10 21:56:02 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:02 +0100
commit457a8d80138e6ceb5062a022eea5dbfcfe713389 (patch)
tree28dd9ce10d6bdfcd134b3adc3225a735ccd6dde6 /src/cubeit.c
parentc6d013d6e46fb5bab393d76e1ab957c7a48c93ac (diff)
cubeit: Fixes
Diffstat (limited to 'src/cubeit.c')
-rw-r--r--src/cubeit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cubeit.c b/src/cubeit.c
index cce4435b..b905df20 100644
--- a/src/cubeit.c
+++ b/src/cubeit.c
@@ -317,7 +317,7 @@ static void sum_image(void *pg)
hdfile_close(hdfile);
free(apargs->filename);
- free(pargs);
+ free(apargs);
}
@@ -570,9 +570,7 @@ int main(int argc, char *argv[])
qargs.static_args.bes = &bes;
qargs.static_args.gas = &gas;
- n_images = 0;
-
- run_threads(nthreads, sum_image, get_image, &qargs, 0);
+ n_images = run_threads(nthreads, sum_image, get_image, &qargs, 0);
fclose(fh);