numparam/*, plug memory leaks
This commit is contained in:
parent
ea1b83698f
commit
9ad63cc2c0
|
|
@ -191,10 +191,13 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
|
|||
entry = entrynb(dico, spice_dstring_value(&name));
|
||||
if (entry && (entry->tp == NUPA_SUBCKT)) {
|
||||
spice_dstring_setlength(dstr_p, (int) (p_end - s));
|
||||
spice_dstring_free(&name);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
spice_dstring_free(&name);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -556,6 +556,7 @@ findsubckt(dico_t *dico, const char * const s)
|
|||
|
||||
pscopy(&ustr, name_b, name_e);
|
||||
entry = entrynb(dico, spice_dstring_value(&ustr));
|
||||
spice_dstring_free(&ustr);
|
||||
|
||||
if (entry && (entry->tp == NUPA_SUBCKT)) {
|
||||
return entry->ivl;
|
||||
|
|
|
|||
Loading…
Reference in New Issue