use SP_FREE

This commit is contained in:
dwarning 2023-06-17 09:35:13 +02:00
parent 645f968e77
commit 74e77e909b
2 changed files with 3 additions and 3 deletions

View File

@ -654,7 +654,7 @@ AllocationListPtr ListPtr, NextListPtr;
ListPtr = Matrix->TopOfAllocationList; ListPtr = Matrix->TopOfAllocationList;
while (ListPtr != NULL) while (ListPtr != NULL)
{ NextListPtr = ListPtr->NextRecord; { NextListPtr = ListPtr->NextRecord;
free( ListPtr->AllocatedPtr ); SP_FREE( ListPtr->AllocatedPtr );
ListPtr = NextListPtr; ListPtr = NextListPtr;
} }
return; return;
@ -683,7 +683,7 @@ spErrorState( MatrixPtr Matrix )
if (Matrix != NULL) if (Matrix != NULL)
{ ASSERT_IS_SPARSE( Matrix ); { ASSERT_IS_SPARSE( Matrix );
return (Matrix)->Error; return Matrix->Error;
} }
else return spNO_MEMORY; /* This error may actually be spPANIC, else return spNO_MEMORY; /* This error may actually be spPANIC,
* no way to tell. */ * no way to tell. */

View File

@ -996,7 +996,7 @@ int I, *pExtOrder;
* Norm (RealNumber) * Norm (RealNumber)
* L-infinity norm of a complex number. * L-infinity norm of a complex number.
* Size (int) * Size (int)
* Local storage for Matrix->Size. Placed in a for speed. * Local storage for Matrix->Size. Placed in a register for speed.
* Temp (RealNumber) * Temp (RealNumber)
* Temporary storage for real portion of determinant. * Temporary storage for real portion of determinant.
*/ */