diff options
author | Thomas White <taw@physics.org> | 2019-08-02 14:51:18 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-08-02 14:51:18 +0200 |
commit | 89dbd2980be6eed5c6b2a73813384c27db9830d3 (patch) | |
tree | cb51f80e77c74c917c213c332f034a903db6543e /libcrystfel/src/predict-refine.c | |
parent | 40640193b37e584d12ca3695f16079140cb6b651 (diff) |
Fix a small memory leak
Diffstat (limited to 'libcrystfel/src/predict-refine.c')
-rw-r--r-- | libcrystfel/src/predict-refine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c index 11f4b630..6facc6c3 100644 --- a/libcrystfel/src/predict-refine.c +++ b/libcrystfel/src/predict-refine.c @@ -337,6 +337,7 @@ int refine_radius(Crystal *cr, struct image *image) n_acc = pair_peaks(image, cr, reflist, rps); if ( n_acc < 3 ) { free(rps); + reflist_free(reflist); return 1; } crystal_set_reflections(cr, reflist); |