mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
call to nupa_done() to release memory
This commit is contained in:
@@ -630,7 +630,7 @@ nupa_copy (char *s, int linenum)
|
||||
pscopy (u, s, 1, ls); /* strip trailing space, CrLf and so on */
|
||||
dico->srcline = linenum;
|
||||
|
||||
if ((!inexpansion) && (linenum >= 0) && (linenum < dynmaxline))
|
||||
if ((!inexpansion) && (linenum >= 0) && (linenum <= dynmaxline))
|
||||
{
|
||||
linecount++;
|
||||
dico->dynrefptr[linenum] = s;
|
||||
|
||||
@@ -184,7 +184,7 @@ inp_subcktexpand(struct line *deck)
|
||||
c= c->li_next;
|
||||
}
|
||||
c=deck;
|
||||
while ( c != NULL) { /* first Numparam pass */
|
||||
while ( c != NULL) { /* first Numparam pass */
|
||||
c->li_line = nupa_copy(c->li_line, c->li_linenum);
|
||||
c= c->li_next;
|
||||
}
|
||||
@@ -344,9 +344,10 @@ inp_subcktexpand(struct line *deck)
|
||||
c= c->li_next;
|
||||
}
|
||||
#endif /* TRACE */
|
||||
//ok= ok && nupa_signal(NUPAEVALDONE, NULL);
|
||||
|
||||
//nupa_list_params(stdout);
|
||||
nupa_copy_inst_dico();
|
||||
ok= ok && nupa_signal(NUPAEVALDONE, NULL);
|
||||
}
|
||||
return (ll); /* return the spliced deck. */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user