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

This commit is contained in:
Holger Vogt 2021-07-12 23:54:53 +02:00
parent 4837773045
commit b142f2eb9d
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}