diff options
author | goodale <goodale@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 1999-10-26 23:45:01 +0000 |
---|---|---|
committer | goodale <goodale@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 1999-10-26 23:45:01 +0000 |
commit | e6fe55b957b034630d9574ebbcd8d0ecd28f2fb5 (patch) | |
tree | e05552adcd3996e6e33874ba4f84c1c19a830bc3 | |
parent | 85f6b559e2e2e4917238e7cf4bc70b8c52861b71 (diff) |
Various things pointed out by running Insure on the code. Normally
harmless things like not returning a value, but a rather subtle memory
leak in one place too.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@60 ebee0441-1374-4afa-a3b5-247f3ba15b9a
-rw-r--r-- | src/Output2D.c | 2 | ||||
-rw-r--r-- | src/Output3D.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Output2D.c b/src/Output2D.c index 3bedda0..9223938 100644 --- a/src/Output2D.c +++ b/src/Output2D.c @@ -59,7 +59,7 @@ int IOFlexIO_Output2DGH (cGH *GH) myGH = (flexioGH *) GH->extensions [CCTK_GHExtensionHandle ("IOFlexIO")]; if (myGH->IO_2Devery <= 0) - return; + return 0; /* Loop over all variables */ for (i = 0; i < CCTK_NumVars (); i++) { diff --git a/src/Output3D.c b/src/Output3D.c index 25a98a7..ecb72fa 100644 --- a/src/Output3D.c +++ b/src/Output3D.c @@ -61,7 +61,7 @@ int IOFlexIO_Output3DGH (cGH *GH) myGH = (flexioGH *) GH->extensions [CCTK_GHExtensionHandle ("IOFlexIO")]; if (myGH->IO_3Devery <= 0) - return; + return 0; /* Loop over all variables */ for (i = 0; i < CCTK_NumVars (); i++) { |