diff --git a/src/xspice/mif/mifgetmod.c b/src/xspice/mif/mifgetmod.c index be1f66d84..49fbfe492 100644 --- a/src/xspice/mif/mifgetmod.c +++ b/src/xspice/mif/mifgetmod.c @@ -201,6 +201,8 @@ char *MIFgetMod( val, NULL); /* free val, allocated by MIFgetValue */ tfree(val->v.vec.rVec); + if (IF_STRING == (ft_sim->devices[modtmp->INPmodType]->modelParms[j].dataType & IF_VARTYPES)) + tfree(val->sValue); if(error) return(INPerror(error)); break;