Add mem_init() and mem_delete() to setup and unsetup functions
This commit is contained in:
parent
4837773045
commit
b142f2eb9d
|
|
@ -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…
Reference in New Issue