aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index bfc6be37..70384250 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -247,6 +247,7 @@ int main(int argc, char *argv[])
do {
int na, nb, nc;
+ int i;
na = 8*random()/RAND_MAX + 4;
nb = 8*random()/RAND_MAX + 4;
@@ -302,6 +303,9 @@ int main(int argc, char *argv[])
/* Clean up */
free(image.data);
+ for ( i=0; i<image.nspheres; i++ ) {
+ free(image.qvecs[i]);
+ }
free(image.qvecs);
free(image.hdr);
free(image.sfacs);