Corrected an issue from the last commit, which is that the default
ground node name (which is static) gets put on the node list and is improperly deallocated. Corrected by simply allocating the string for the default substrate node instead of using the static string.
This commit is contained in:
parent
a3f5f4db80
commit
a2687d4385
|
|
@ -359,7 +359,7 @@ calmaParseStructure(filename)
|
|||
int mfactor;
|
||||
int locPolygonCount;
|
||||
OFFTYPE filepos;
|
||||
bool was_called;
|
||||
bool was_called = FALSE;
|
||||
bool was_initialized;
|
||||
bool predefined;
|
||||
bool do_flatten;
|
||||
|
|
|
|||
|
|
@ -2132,7 +2132,7 @@ esHierVisit(hc, cdata)
|
|||
/* Find the substrate node */
|
||||
EFHierVisitNodes(hcf, spcsubHierVisit, (ClientData)&resstr);
|
||||
if (resstr == NULL)
|
||||
resstr = esSpiceDefaultGnd;
|
||||
resstr = StrDup((char **)NULL, esSpiceDefaultGnd);
|
||||
|
||||
/* Output lumped capacitance and resistance to substrate */
|
||||
esSpiceCapNode = resstr;
|
||||
|
|
|
|||
|
|
@ -1124,7 +1124,7 @@ runexttospice:
|
|||
/* Visit nodes to find the substrate node */
|
||||
EFVisitNodes(spcsubVisit, (ClientData)&substr);
|
||||
if (substr == NULL)
|
||||
substr = esSpiceDefaultGnd;
|
||||
substr = StrDup((char **)NULL, esSpiceDefaultGnd);
|
||||
|
||||
esSpiceCapNode = substr;
|
||||
EFVisitNodes(spcnodeVisit, (ClientData) NULL);
|
||||
|
|
@ -1296,7 +1296,7 @@ main(argc, argv)
|
|||
|
||||
EFVisitResists(spcresistVisit, (ClientData) NULL);
|
||||
EFVisitSubcircuits(subcktVisit, (ClientData) NULL);
|
||||
esSpiceCapNode = esSpiceDefaultGnd;
|
||||
esSpiceCapNode = StrDup((char **)NULL, esSpiceDefaultGnd);
|
||||
EFVisitNodes(spcnodeVisit, (ClientData) NULL);
|
||||
|
||||
if ((esDoSubckt == TRUE) || (locDoSubckt == TRUE))
|
||||
|
|
|
|||
Loading…
Reference in New Issue