inp.c, bug fix, commit "allow 'temper' keyword in .param, .model and device instance lines ..."
don't overwrite struct pt_temper.expression, to allow free'ing this string.
This commit is contained in:
parent
648de2a001
commit
12de713ff5
|
|
@ -1564,11 +1564,15 @@ inp_parse_temper_trees(void)
|
||||||
{
|
{
|
||||||
struct pt_temper *d;
|
struct pt_temper *d;
|
||||||
|
|
||||||
for(d = devtlist; d; d = d->next)
|
for(d = devtlist; d; d = d->next) {
|
||||||
INPgetTree(&d->expression, &d->pt, ft_curckt->ci_ckt, NULL);
|
char *expression = d->expression;
|
||||||
|
INPgetTree(&expression, &d->pt, ft_curckt->ci_ckt, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
for(d = modtlist; d; d = d->next)
|
for(d = modtlist; d; d = d->next) {
|
||||||
INPgetTree(&d->expression, &d->pt, ft_curckt->ci_ckt, NULL);
|
char *expression = d->expression;
|
||||||
|
INPgetTree(&expression, &d->pt, ft_curckt->ci_ckt, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue