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