diff options
author | Thomas White <taw@physics.org> | 2014-10-22 17:50:37 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-10-23 17:02:32 +0200 |
commit | 1a37de5cce5c2df83e37fb189409659299594b1b (patch) | |
tree | deb3e7c3b8b661c07aa2a4a4a663c97081d63b05 /src/process_image.c | |
parent | 8bdd03533aefabfe13259eb6e9b585420b4ed984 (diff) |
Fix a load of memory leaks
Diffstat (limited to 'src/process_image.c')
-rw-r--r-- | src/process_image.c | 7 |
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++ ) { |