Fixed a memory leak

This commit is contained in:
Francesco Lannutti 2020-08-26 20:41:51 +02:00
parent 9f9b0fe23f
commit bba8c5deec
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ void SMPconvertCOOtoCSC (SMPmatrix *Matrix)
MatrixCOO [i].group = 0 ;
current = temp ;
temp = temp->next ;
free (current->pointer) ;
free (current) ;
current = NULL ;
i++ ;