diff options
author | tradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668> | 2004-11-02 10:28:59 +0000 |
---|---|---|
committer | tradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668> | 2004-11-02 10:28:59 +0000 |
commit | 9be765f882afd608270786df1632a55fb9c626e8 (patch) | |
tree | 8f6fb5f9d1835a794f7f240241b1b6a5d1f6aae5 | |
parent | 775f98ee4eb721338967457b59bd75e86c144e77 (diff) |
Fixed a memory leak during checkpointing.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5Util/trunk@121 7842ec3a-9562-4be5-9c5b-06ba18f2b668
-rw-r--r-- | src/DumpUtils.c | 7 |
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); } |