Fixed a memory leak

This commit is contained in:
Francesco Lannutti 2020-08-26 20:41:51 +02:00 committed by Holger Vogt
parent 6da4c076fd
commit 48c41fb00f
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++ ;