fix a memory leak

This commit is contained in:
Holger Vogt 2018-08-09 23:23:18 +02:00
parent 9db2bf3d69
commit a6f525f6c1
1 changed files with 2 additions and 0 deletions

View File

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