diff options
author | Thomas White <taw@physics.org> | 2010-05-28 14:24:56 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-05-28 14:24:56 +0200 |
commit | 361bbacf1b17cdf57b8870dc8b560ff1a6831b1f (patch) | |
tree | c48f8058fc5a43b4b6e419f315bdabbb5ad20670 /src/indexamajig.c | |
parent | 0a721b5c0b022208b567dae7e0638b9da9c27cbd (diff) |
Fix image buffer memory leak
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 80557dab..50318a1b 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -334,13 +334,14 @@ static void *process_image(void *pargsv) result->peaks_sane = 1; } + /* Get rid of noise-filtered version at this point */ + free(image.data); + image.data = data_for_measurement; + /* Measure intensities if requested */ if ( config_nearbragg ) { - /* Use original data (temporarily) */ - image.data = data_for_measurement; output_intensities(&image, image.indexed_cell, pargs->output_mutex, config_unpolar); - image.data = NULL; } simage = get_simage(&image, config_alternate); |