From 9aeb19db674f211aff6847104135798620f9f150 Mon Sep 17 00:00:00 2001 From: Helen Ginn Date: Sun, 29 Apr 2018 20:53:53 +0200 Subject: Plug leaks --- libcrystfel/src/taketwo.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libcrystfel/src') 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); } -- cgit v1.2.3