numparam/*, plug memory leaks

This commit is contained in:
rlar 2017-12-27 23:55:46 +01:00
parent ea1b83698f
commit 9ad63cc2c0
2 changed files with 4 additions and 0 deletions

View File

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

View File

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