aboutsummaryrefslogtreecommitdiff
path: root/src/process_image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process_image.c')
-rw-r--r--src/process_image.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/process_image.c b/src/process_image.c
index 68708fd7..807facd9 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -164,12 +164,6 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
mark_resolution_range_as_bad(&image, iargs->highres, +INFINITY);
- hdfile = hdfile_open(image.filename);
- if ( hdfile == NULL ) {
- ERROR("Couldn't open file %s.\n", image.filename);
- return;
- }
-
switch ( iargs->peaks ) {
case PEAK_HDF5:
@@ -224,6 +218,7 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
hdfile_close(hdfile);
return;
}
+ free(rn);
pargs->n_crystals = image.n_crystals;
for ( i=0; i<image.n_crystals; i++ ) {