From 74e77e909ba3e5801aaee546fd6779a5f582ced7 Mon Sep 17 00:00:00 2001 From: dwarning Date: Sat, 17 Jun 2023 09:35:13 +0200 Subject: [PATCH] use SP_FREE --- src/maths/sparse/spAllocate.c | 4 ++-- src/maths/sparse/spUtils.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/maths/sparse/spAllocate.c b/src/maths/sparse/spAllocate.c index 88d7a7b75..57a051bbd 100644 --- a/src/maths/sparse/spAllocate.c +++ b/src/maths/sparse/spAllocate.c @@ -654,7 +654,7 @@ AllocationListPtr ListPtr, NextListPtr; ListPtr = Matrix->TopOfAllocationList; while (ListPtr != NULL) { NextListPtr = ListPtr->NextRecord; - free( ListPtr->AllocatedPtr ); + SP_FREE( ListPtr->AllocatedPtr ); ListPtr = NextListPtr; } return; @@ -683,7 +683,7 @@ spErrorState( MatrixPtr Matrix ) if (Matrix != NULL) { ASSERT_IS_SPARSE( Matrix ); - return (Matrix)->Error; + return Matrix->Error; } else return spNO_MEMORY; /* This error may actually be spPANIC, * no way to tell. */ diff --git a/src/maths/sparse/spUtils.c b/src/maths/sparse/spUtils.c index 0ff8bb673..598560153 100644 --- a/src/maths/sparse/spUtils.c +++ b/src/maths/sparse/spUtils.c @@ -996,7 +996,7 @@ int I, *pExtOrder; * Norm (RealNumber) * L-infinity norm of a complex number. * 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) * Temporary storage for real portion of determinant. */