patch provided by Vito (see
https://sourceforge.net/p/ngspice/discussion/133842/thread/31aa24261e/ )
This commit is contained in:
parent
505eb59b76
commit
bb26062b14
|
|
@ -340,6 +340,7 @@ static void EVTcreate_state(
|
||||||
{
|
{
|
||||||
new_state = state_data->free[inst_index];
|
new_state = state_data->free[inst_index];
|
||||||
state_data->free[inst_index] = new_state->next;
|
state_data->free[inst_index] = new_state->next;
|
||||||
|
new_state->next = NULL; // reusing dirty memory: next must be reset
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue