aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/DumpUtils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/DumpUtils.c b/src/DumpUtils.c
index 07fa12c..9ee3ad9 100644
--- a/src/DumpUtils.c
+++ b/src/DumpUtils.c
@@ -172,6 +172,10 @@ int IOHDF5Util_DumpGH (const cGH *GH, const int *timers, hid_t file)
}
} /* end of loop over all variables */
+
+ /* free I/O request */
+ IOUtil_FreeIORequest (&request);
+
} /* end of loop over all groups */
/* stop CP_VARIABLES_TIMER timer */
@@ -180,9 +184,6 @@ int IOHDF5Util_DumpGH (const cGH *GH, const int *timers, hid_t file)
CCTK_TimerStopI (timers[CP_VARIABLES_TIMER]);
}
- /* free I/O request */
- IOUtil_FreeIORequest (&request);
-
return (retval);
}