diff options
author | schnetter <schnetter@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2008-02-15 23:46:18 +0000 |
---|---|---|
committer | schnetter <schnetter@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2008-02-15 23:46:18 +0000 |
commit | a37d729ceba31df7bd46f99753e50b9f8b9f2d43 (patch) | |
tree | 4336c14e15d3f01c583b959c1155926079d9ec8f /src/CheckpointRecovery.c | |
parent | 070ef19269b97508829245b3f3376c2cddae14d4 (diff) |
Correct small (probably inconsequential) memory leak in recovery
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@255 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
Diffstat (limited to 'src/CheckpointRecovery.c')
-rw-r--r-- | src/CheckpointRecovery.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/CheckpointRecovery.c b/src/CheckpointRecovery.c index f9aee40..fb9872a 100644 --- a/src/CheckpointRecovery.c +++ b/src/CheckpointRecovery.c @@ -327,10 +327,7 @@ static int IOUtil_RecoverFromFile (cGH *GH, retval = recover_fn (GH, basefilename, called_from); } } - if (keylen > 0) - { - free (key); - } + free (key); Util_TableItDestroy (ihandle); return (retval); |