fix a memory leak in ASRC

This commit is contained in:
Holger Vogt 2020-08-27 13:56:18 +02:00
parent 613ae18db9
commit 98dd7da1c4
2 changed files with 6 additions and 0 deletions

View File

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

View File

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