aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r--libcrystfel/src/stream.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index 5782bb82..91f644fa 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -203,11 +203,15 @@ void write_chunk(Stream *st, struct image *i, struct hdfile *hdfile,
int include_peaks, int include_reflections)
{
int j;
+ char *indexer;
fprintf(st->fh, CHUNK_START_MARKER"\n");
fprintf(st->fh, "Image filename: %s\n", i->filename);
- fprintf(st->fh, "indexed_by = %s\n", indexer_str(i->indexed_by));
+
+ indexer = indexer_str(i->indexed_by);
+ fprintf(st->fh, "indexed_by = %s\n", indexer);
+ free(indexer);
if ( i->det != NULL ) {