Browse Source

spicelib/parser/inpptree.c, bug fix, "#287 Shared library crashes on using non existing functions "

"remcirc" has the potential to invoke INPfreeTree() with a NULL IFparseTree

Thanks to Craggan, who reported this in:
  http://sourceforge.net/p/ngspice/bugs/287/
pre-master-46
rlar 11 years ago
parent
commit
f4472f788e
  1. 3
      src/spicelib/parser/inpptree.c

3
src/spicelib/parser/inpptree.c

@ -1409,6 +1409,9 @@ void INPfreeTree(IFparseTree *ptree)
int i;
if (!pt)
return;
for (i = 0; i < pt->p.numVars; i++)
dec_usage(pt->derivs[i]);

Loading…
Cancel
Save