Browse Source

fix a memory leak

pre-master-46
Holger Vogt 8 years ago
parent
commit
a6f525f6c1
  1. 2
      src/xspice/mif/mifgetmod.c

2
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;

Loading…
Cancel
Save