39 #ifndef KLU2_FREE_SYMBOLIC_HPP
40 #define KLU2_FREE_SYMBOLIC_HPP
42 #include "klu2_internal.h"
43 #include "klu2_memory.hpp"
45 template <
typename Entry,
typename Int>
48 KLU_symbolic<Entry, Int> **SymbolicHandle,
49 KLU_common<Entry, Int> *Common
52 KLU_symbolic<Entry, Int> *Symbolic ;
58 if (SymbolicHandle == NULL || *SymbolicHandle == NULL)
62 Symbolic = *SymbolicHandle ;
64 KLU_free (Symbolic->P, n, sizeof (Int), Common) ;
65 KLU_free (Symbolic->Q, n, sizeof (Int), Common) ;
66 KLU_free (Symbolic->R, n+1, sizeof (Int), Common) ;
67 KLU_free (Symbolic->Lnz, n, sizeof (
double), Common) ;
68 KLU_free (Symbolic, 1,
sizeof (KLU_symbolic<Entry, Int>), Common) ;
69 *SymbolicHandle = NULL ;