aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/integration.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-10-22 17:50:37 +0200
committerThomas White <taw@physics.org>2014-10-23 17:02:32 +0200
commit1a37de5cce5c2df83e37fb189409659299594b1b (patch)
treedeb3e7c3b8b661c07aa2a4a4a663c97081d63b05 /libcrystfel/src/integration.c
parent8bdd03533aefabfe13259eb6e9b585420b4ed984 (diff)
Fix a load of memory leaks
Diffstat (limited to 'libcrystfel/src/integration.c')
-rw-r--r--libcrystfel/src/integration.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c
index 34bde83a..55adf287 100644
--- a/libcrystfel/src/integration.c
+++ b/libcrystfel/src/integration.c
@@ -641,6 +641,7 @@ static void delete_box(struct intcontext *ic, struct peak_box *bx)
}
free(bx->bm);
+ gsl_matrix_free(bx->bgm);
memmove(&ic->boxes[i], &ic->boxes[i+1],
(ic->n_boxes-i-1)*sizeof(struct peak_box));