Fixed two memory leaks.
This commit is contained in:
parent
feaf65ed85
commit
3abf5eabdd
@ -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) */
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user