fix a memory leak in ASRC
This commit is contained in:
parent
613ae18db9
commit
98dd7da1c4
|
|
@ -19,5 +19,8 @@ ASRCdelete(GENinstance *gen_inst)
|
|||
FREE(inst->ASRCacValues);
|
||||
FREE(inst->ASRCposPtr);
|
||||
FREE(inst->ASRCvars);
|
||||
#ifdef KLU
|
||||
FREE(inst->ASRCposBinding);
|
||||
#endif
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -143,6 +143,9 @@ ASRCunsetup(GENmodel *inModel, CKTcircuit *ckt)
|
|||
FREE(here->ASRCposPtr);
|
||||
FREE(here->ASRCvars);
|
||||
FREE(here->ASRCacValues);
|
||||
#ifdef KLU
|
||||
FREE(here->ASRCposBinding);
|
||||
#endif
|
||||
}
|
||||
|
||||
return OK;
|
||||
|
|
|
|||
Loading…
Reference in New Issue