aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/taketwo.c
diff options
context:
space:
mode:
authorHelen Ginn <helen@strubi.ox.ac.uk>2018-04-29 20:53:53 +0200
committerThomas White <taw@physics.org>2018-05-02 09:46:15 +0200
commit9aeb19db674f211aff6847104135798620f9f150 (patch)
treef7cf440832ae79dd5d383aaa5b8bba1484d43d9a /libcrystfel/src/taketwo.c
parentb8bca47b2b199c0205e0a6a30800f0991e477842 (diff)
Plug leaks
Diffstat (limited to 'libcrystfel/src/taketwo.c')
-rw-r--r--libcrystfel/src/taketwo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c
index 1d68ccc7..480fd76a 100644
--- a/libcrystfel/src/taketwo.c
+++ b/libcrystfel/src/taketwo.c
@@ -396,6 +396,12 @@ static void rotate_gsl_by_angles(gsl_matrix *sol, double x, double y,
/* Apply the whole rotation offset to the solution */
gsl_blas_dgemm(CblasNoTrans, CblasNoTrans, 1.0, xyz_rot,
sol, 0.0, result);
+
+ gsl_matrix_free(x_rot);
+ gsl_matrix_free(y_rot);
+ gsl_matrix_free(z_rot);
+ gsl_matrix_free(xy_rot);
+ gsl_matrix_free(xyz_rot);
}