From b142f2eb9d17e7d490abe8d7a8bf8dbf626c4641 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 12 Jul 2021 23:54:53 +0200 Subject: [PATCH] Add mem_init() and mem_delete() to setup and unsetup functions --- src/spicelib/devices/cpl/cplsetup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/spicelib/devices/cpl/cplsetup.c b/src/spicelib/devices/cpl/cplsetup.c index 9bd63a7e9..76865084e 100644 --- a/src/spicelib/devices/cpl/cplsetup.c +++ b/src/spicelib/devices/cpl/cplsetup.c @@ -147,6 +147,9 @@ CPLsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *state) NG_IGNORE(state); + /* hash table for local gc */ + mem_init(); + /* loop through all the models */ for( ; model != NULL; model = CPLnextModel(model)) { @@ -349,6 +352,7 @@ CPLunsetup(GENmodel *inModel, CKTcircuit *ckt) here->CPLibr2Given = 0; } } + mem_delete(); return OK; }