diff options
author | allen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-05-10 14:16:21 +0000 |
---|---|---|
committer | allen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-05-10 14:16:21 +0000 |
commit | 44e945cfa0277e2e6d5e58a29df63ed24ad09c33 (patch) | |
tree | f152e0dd2e70cb2ca5fbd7e2211a72701e1149e2 /src/SetupPGV.c | |
parent | 56711ab746cd71ac2b24db24b0115ea6b14ec2c3 (diff) |
Small memory leaks
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@213 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/SetupPGV.c')
-rw-r--r-- | src/SetupPGV.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/SetupPGV.c b/src/SetupPGV.c index 360c769..36ba702 100644 --- a/src/SetupPGV.c +++ b/src/SetupPGV.c @@ -981,8 +981,7 @@ int PUGH_SetupPGExtrasStaggering(int dim, int s,d,k,dir; int *upperbnd; - upperbnd = (int*) malloc(dim*sizeof(int)); - + upperbnd = (int*) malloc(dim*sizeof(int)); for (d=0;d<dim;d++) { @@ -1026,6 +1025,9 @@ int PUGH_SetupPGExtrasStaggering(int dim, } } } + + free(upperbnd); + return(0); } @@ -1105,6 +1107,10 @@ int PUGH_SetupBoundingBox(int dim, } + for (dir=0; dir<dim;dir++) + { + free(bounds[dir]); + } free(bounds); free(pos); |