aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/detgeom.c1
-rw-r--r--libcrystfel/src/utils.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/detgeom.c b/libcrystfel/src/detgeom.c
index 39b00663..2b38664c 100644
--- a/libcrystfel/src/detgeom.c
+++ b/libcrystfel/src/detgeom.c
@@ -269,6 +269,7 @@ gsl_matrix **make_panel_minvs(struct detgeom *dg)
gsl_matrix_set(M, 2, 2, p->pixel_pitch*p->ssz);
Minvs[i] = matrix_invert(M);
+ gsl_matrix_free(M);
if ( Minvs[i] == NULL ) {
ERROR("Failed to calculate inverse panel matrix for %s\n",
p->name);
diff --git a/libcrystfel/src/utils.c b/libcrystfel/src/utils.c
index 7bfac487..5204e5f1 100644
--- a/libcrystfel/src/utils.c
+++ b/libcrystfel/src/utils.c
@@ -162,7 +162,6 @@ gsl_matrix *matrix_invert(gsl_matrix *m)
}
gsl_permutation_free(perm);
- gsl_matrix_free(m);
return inv;
}