use TMALLOC

This commit is contained in:
rlar 2016-07-02 18:03:51 +02:00 committed by Holger Vogt
parent b87c539435
commit eda8b57eb4
1 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
#include "ngspice/memory.h"
#include "klu_internal.h"
typedef struct sElement {
@ -104,8 +105,8 @@ KLU_convert_matrix_in_CSR /* return TRUE if successful, FALSE otherwise
Common->status = KLU_OK ;
MatrixCOO = (Element *) malloc ((size_t)nz * sizeof (Element)) ;
Ap_COO = (Int *) malloc ((size_t)nz * sizeof (Int)) ;
MatrixCOO = TMALLOC(Element, nz);
Ap_COO = TMALLOC(Int, nz);
Az_CSC = (Entry *)Ax_CSC ;
Az_CSR = (Entry *)Ax_CSR ;