From b1f956f81c1ce1650a7a7e561e1662d70148fb2d Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 13 Aug 2018 21:36:01 +0200 Subject: [PATCH] fix a memory leak --- src/xspice/mif/mifgetmod.c | 2 ++ 1 file changed, 2 insertions(+) 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;