aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-06-25 12:13:49 +0200
committerThomas White <taw@physics.org>2015-06-25 12:14:43 +0200
commit330fff9a164acc19d23dda7c65300bf927eed41e (patch)
treed3d10d47cfa8e2c65d05c5d90daec7be2cbd00a5 /libcrystfel/src/detector.c
parentbfb2044c589bbc5dcf94450cbaca1acbef1033ea (diff)
Tidy up some small leaks and memory bugs
Diffstat (limited to 'libcrystfel/src/detector.c')
-rw-r--r--libcrystfel/src/detector.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index 41b63997..9bbd4208 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -1631,6 +1631,7 @@ out:
add_to_rigid_group_coll(rgcollection, r);
free(bits[rgi]);
}
+ free(bits);
free(rgc_defl[rgci]->name);
free(rgc_defl[rgci]->rgs);
free(rgc_defl[rgci]);
@@ -1773,12 +1774,6 @@ struct detector *copy_geom(const struct detector *in)
}
- if ( p->clen_from != NULL ) {
- /* Make a copy of the mask fields unique to this
- * copy of the structure. */
- p->clen_from = strdup(p->clen_from);
- }
-
}
for ( i=0; i<in->n_panels; i++ ) {