diff --git a/src/xspice/mif/mifgetmod.c b/src/xspice/mif/mifgetmod.c index 9c05c96ea..be1f66d84 100644 --- a/src/xspice/mif/mifgetmod.c +++ b/src/xspice/mif/mifgetmod.c @@ -199,6 +199,8 @@ char *MIFgetMod( modtmp->INPmodfast, ft_sim->devices[modtmp->INPmodType]->modelParms[j].id, val, NULL); + /* free val, allocated by MIFgetValue */ + tfree(val->v.vec.rVec); if(error) return(INPerror(error)); break;