From a6f525f6c18576fbb8d0b2b03f7e93ac4b8b1907 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Thu, 9 Aug 2018 23:23:18 +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 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;