aboutsummaryrefslogtreecommitdiff
path: root/src/FlatBoundary.c
diff options
context:
space:
mode:
authorgoodale <goodale@6a38eb6e-646e-4a02-a296-d141613ad6c4>1999-10-26 23:44:55 +0000
committergoodale <goodale@6a38eb6e-646e-4a02-a296-d141613ad6c4>1999-10-26 23:44:55 +0000
commit0fa274d4a2221f4804d893b9810fec84f40a8f41 (patch)
treeb0c4b4418ab203f19bf30b9bd7a80e7cc438fd58 /src/FlatBoundary.c
parent7c186f365d2817be5a33f3ce5042b29aecf8fdfd (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/CactusBase/Boundary/trunk@55 6a38eb6e-646e-4a02-a296-d141613ad6c4
Diffstat (limited to 'src/FlatBoundary.c')
-rw-r--r--src/FlatBoundary.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FlatBoundary.c b/src/FlatBoundary.c
index 0da4356..b86d852 100644
--- a/src/FlatBoundary.c
+++ b/src/FlatBoundary.c
@@ -122,12 +122,12 @@ int ApplyFlatBC(cGH *GH, int *stencil_size, const char *name) {
if (GH->cctk_dim == 3)
{
ApplyFlat3Di(GH,doBC,GH->cctk_lsh,stencil_size,GH->data[index][0]);
+ retval = 0;
}
else
{
CCTKi_NotYetImplemented("Flat boundaries in other than 3D");
retval = -1;
- return retval;
}
}
@@ -135,6 +135,7 @@ int ApplyFlatBC(cGH *GH, int *stencil_size, const char *name) {
if (doBC) free(doBC);
+ return retval;
}
void FMODIFIER FORTRAN_NAME(ApplyFlatBC)(int *retval, cGH *GH, int *stencil_size, ONE_FORTSTRING_ARG) {
@@ -151,7 +152,6 @@ int FlatBCVarI(cGH *GH, int *stencil_size, int vi) {
int retval;
- sGHex = (SymmetryGHex*)malloc(sizeof(SymmetryGHex));
sGHex = (SymmetryGHex*)GH->extensions[CCTK_GHExtensionHandle("Symmetry")];
doBC = (int *)malloc(2*(GH->cctk_dim)*sizeof(int));