Fixed two memory leaks.

This commit is contained in:
falgout 2010-04-22 19:50:59 +00:00
parent feaf65ed85
commit 3abf5eabdd
2 changed files with 5 additions and 1 deletions

View File

@ -138,6 +138,11 @@ impl_bHYPRE_MPICommunicator__dtor(
{
/* DO-NOT-DELETE splicer.begin(bHYPRE.MPICommunicator._dtor) */
/* Insert-Code-Here {bHYPRE.MPICommunicator._dtor} (destructor method) */
struct bHYPRE_MPICommunicator__data * data;
data = bHYPRE_MPICommunicator__get_data( self );
hypre_TFree( data );
/* DO-NOT-DELETE splicer.end(bHYPRE.MPICommunicator._dtor) */
}
}

View File

@ -651,7 +651,6 @@ impl_bHYPRE_StructVector_Clone(
grid = hypre_StructVectorGrid(yy);
ierr += HYPRE_StructVectorCreate( data_x->comm, grid, &xx );
ierr += HYPRE_StructVectorInitialize( xx );
data_x -> vec = xx;
num_ghost = hypre_StructVectorNumGhost(yy);