aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/detector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index a5dc12f7..99205e67 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -1037,6 +1037,8 @@ out:
det->max_fs = max_fs;
det->max_ss = max_ss;
+ free(det->defaults.clen_from);
+
/* Calculate matrix inverses and other stuff */
for ( i=0; i<det->n_panels; i++ ) {
@@ -1085,8 +1087,6 @@ void free_detector_geometry(struct detector *det)
rigid_groups_free(det);
- free(det->defaults.clen_from);
-
for ( i=0; i<det->n_panels; i++ ) {
free(det->panels[i].clen_from);
}