15 #ifndef KLU2_FREE_SYMBOLIC_HPP
16 #define KLU2_FREE_SYMBOLIC_HPP
18 #include "klu2_internal.h"
19 #include "klu2_memory.hpp"
21 template <
typename Entry,
typename Int>
24 KLU_symbolic<Entry, Int> **SymbolicHandle,
25 KLU_common<Entry, Int> *Common
28 KLU_symbolic<Entry, Int> *Symbolic ;
34 if (SymbolicHandle == NULL || *SymbolicHandle == NULL)
38 Symbolic = *SymbolicHandle ;
40 KLU_free (Symbolic->P, n, sizeof (Int), Common) ;
41 KLU_free (Symbolic->Q, n, sizeof (Int), Common) ;
42 KLU_free (Symbolic->R, n+1, sizeof (Int), Common) ;
43 KLU_free (Symbolic->Lnz, n, sizeof (
double), Common) ;
44 KLU_free (Symbolic, 1,
sizeof (KLU_symbolic<Entry, Int>), Common) ;
45 *SymbolicHandle = NULL ;