Browse Source

fix a memory leak

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

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

Loading…
Cancel
Save