diff options
author | Thomas White <taw@physics.org> | 2021-07-23 12:55:28 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-07-23 12:55:28 +0200 |
commit | 15e5de04dee4e3af0effc9942fc08cdc124b747b (patch) | |
tree | 319c91bd7f0f975aa915b19d5ea8cdedd6c8cf93 | |
parent | 9d2f3025d39968309a018153b2892e30ebf331d3 (diff) |
write_{radius,angle}_grid: Fix error path
-rw-r--r-- | src/post-refinement.c | 4 |
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); |