diff options
author | Thomas White <taw@physics.org> | 2013-06-01 19:00:01 -0700 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-06-01 19:00:01 -0700 |
commit | 3104cf229230151e8ca158144952d474f4b61aa3 (patch) | |
tree | 265cf4fc702109fd3a2066fa306a8d12203a7340 /libcrystfel/src/stream.c | |
parent | c3ce11bc291eb890ec0061892534802e75e3c2c1 (diff) |
Fix multiple small memory leaks
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r-- | libcrystfel/src/stream.c | 6 |
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 ) { |