diff options
Diffstat (limited to 'libcrystfel/src/indexers/mosflm.c')
-rw-r--r-- | libcrystfel/src/indexers/mosflm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/indexers/mosflm.c b/libcrystfel/src/indexers/mosflm.c index c56f3ae6..129e6859 100644 --- a/libcrystfel/src/indexers/mosflm.c +++ b/libcrystfel/src/indexers/mosflm.c @@ -244,6 +244,7 @@ static int read_newmat(struct mosflm_data *mosflm, const char *filename, n += fscanf(fh, "%f %f %f\n", &asz, &bsz, &csz); if ( n != 9 ) { STATUS("Fewer than 9 parameters found in NEWMAT file.\n"); + fclose(fh); return 1; } @@ -371,6 +372,7 @@ static void write_img(struct image *image, const char *filename) fh = fopen(filename, "w"); if ( !fh ) { ERROR("Couldn't open temporary file '%s'\n", filename); + free(intimage); return; } |