diff options
author | Thomas White <taw@physics.org> | 2013-02-05 11:36:44 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-02-05 11:36:44 +0100 |
commit | 29cca07716b48f9e433087f5dbb202165b1897e1 (patch) | |
tree | 43c2eb55de6ac540d70308c9c6cbb9c01738b635 /libcrystfel/src/dirax.c | |
parent | e132f0a215392b13bf289cad55f2fece6e193625 (diff) |
WIP on bringing programs up to date
Diffstat (limited to 'libcrystfel/src/dirax.c')
-rw-r--r-- | libcrystfel/src/dirax.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrystfel/src/dirax.c b/libcrystfel/src/dirax.c index 0b2debda..6fbb9663 100644 --- a/libcrystfel/src/dirax.c +++ b/libcrystfel/src/dirax.c @@ -128,17 +128,20 @@ static int check_cell(struct dirax_private *dp, struct image *image, return 0; } - crystal_set_cell(cr, cell); + crystal_set_cell(cr, out); if ( dp->indm & INDEXING_CHECK_PEAKS ) { if ( !peak_sanity_check(image, &cr, 1) ) { crystal_free(cr); /* Frees the cell as well */ + cell_free(out); return 0; } } image_add_crystal(image, cr); + cell_free(out); /* Crystal makes its own copy */ + return 1; } |