inpgmod.c, plug a memory hole
Reported and fixed by Marek Bielik in message: Subject: [Ngspice-devel] Memory leaks fix Date: Tue, 18 Apr 2017 16:16:21 +0000
This commit is contained in:
parent
6f7b68945d
commit
58dfc6cf91
|
|
@ -81,8 +81,10 @@ create_model(CKTcircuit *ckt, INPmodel *modtmp, INPtables *tab)
|
||||||
|
|
||||||
while (*line) {
|
while (*line) {
|
||||||
INPgetTok(&line, &parm, 1);
|
INPgetTok(&line, &parm, 1);
|
||||||
if (!*parm)
|
if (!*parm) {
|
||||||
|
FREE(parm);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
for (j = 0; j < *(ft_sim->devices[modtmp->INPmodType]->numModelParms); j++) {
|
for (j = 0; j < *(ft_sim->devices[modtmp->INPmodType]->numModelParms); j++) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue