aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-19 18:40:01 +0100
committerThomas White <taw@physics.org>2010-02-19 18:40:01 +0100
commitd8115c2fc3bc1c69b751f907e323acc45f6a758a (patch)
tree0d4961d1ba1fc2cbd5ee60409657c144a19a703f /src/pattern_sim.c
parent3542ac97a332f2657c7a69b93bf1133ca81967cb (diff)
Fix various exciting (and otherwise) memory leaks
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 54d9ab88..e2f80b02 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -363,5 +363,10 @@ skip:
cleanup_gpu(gctx);
}
+ free(image.det.panels);
+ free(powder);
+ free(image.molecule->reflections);
+ free(image.molecule);
+
return 0;
}