From 15e5de04dee4e3af0effc9942fc08cdc124b747b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 23 Jul 2021 12:55:28 +0200 Subject: write_{radius,angle}_grid: Fix error path --- src/post-refinement.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/post-refinement.c') 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); -- cgit v1.2.3