Commit 4a15541c authored by Thomas White's avatar Thomas White
Browse files

Don't free non-existent reference list

parent aefce4a6
......@@ -465,8 +465,10 @@ int main(int argc, char *argv[])
free_detector_geometry(det);
free(beam);
free(cref);
free(reference);
reflist_free(reference_list);
if ( reference != NULL ) {
free(reference);
reflist_free(reference_list);
}
for ( i=0; i<n_usable_patterns; i++ ) {
cell_free(images[i].indexed_cell);
free(images[i].filename);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment