aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-07-26 14:45:02 +0200
committerThomas White <taw@physics.org>2023-07-26 14:48:05 +0200
commit4038a12faab1ac3ef3e5c6aacd8850a58d8b9b2d (patch)
tree2b35298d8a28ebea757328ef79d015596653f646 /libcrystfel/src/image.c
parentdea9ccdb72a0f715401a21907c1004de69fbabf1 (diff)
Fix memory leaks in header caching
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r--libcrystfel/src/image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index c1c59eab..ee97397d 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -1358,6 +1358,7 @@ void image_free(struct image *image)
}
for ( i=0; i<image->n_cached_headers; i++ ) {
+ free(image->header_cache[i]->header_name);
free(image->header_cache[i]);
}