aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index c6ff3974..e5218094 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -498,8 +498,8 @@ static void write_angle_grid(Crystal *cr, const RefList *full,
}
fprintf(fh, "\n");
}
+ fclose(fh);
}
- fclose(fh);
reflist_free(crystal_get_reflections(priv.cr_tgt));
crystal_free(priv.cr_tgt);
@@ -564,8 +564,8 @@ static void write_radius_grid(Crystal *cr, const RefList *full,
}
fprintf(fh, "\n");
}
+ fclose(fh);
}
- fclose(fh);
reflist_free(crystal_get_reflections(priv.cr_tgt));
crystal_free(priv.cr_tgt);