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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index d111091b..cea3d004 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -933,8 +933,11 @@ skip:
}
for ( i=0; i<image.det->n_panels; i++ ) {
+ free(image.dp[i]);
free(powder.dp[i]);
}
+ free(image.dp);
+ free(powder.dp);
free(intfile);
free(image.det);
cell_free(input_cell);