Browse Source

Add mem_init() and mem_delete() to setup and unsetup functions

pre-master-46
Holger Vogt 5 years ago
parent
commit
b142f2eb9d
  1. 4
      src/spicelib/devices/cpl/cplsetup.c

4
src/spicelib/devices/cpl/cplsetup.c

@ -147,6 +147,9 @@ CPLsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *state)
NG_IGNORE(state); NG_IGNORE(state);
/* hash table for local gc */
mem_init();
/* loop through all the models */ /* loop through all the models */
for( ; model != NULL; model = CPLnextModel(model)) { for( ; model != NULL; model = CPLnextModel(model)) {
@ -349,6 +352,7 @@ CPLunsetup(GENmodel *inModel, CKTcircuit *ckt)
here->CPLibr2Given = 0; here->CPLibr2Given = 0;
} }
} }
mem_delete();
return OK; return OK;
} }

Loading…
Cancel
Save