Fix memory error related to new edge functionality

This commit is contained in:
Cary R 2021-01-07 23:56:45 -08:00
parent 501586431b
commit 555a2e703a
1 changed files with 1 additions and 1 deletions

View File

@ -936,7 +936,7 @@ void dll_target::event(const NetEvent*net)
} }
} }
unsigned npins = obj->nany + obj->nneg + obj->npos; unsigned npins = obj->nany + obj->nneg + obj->npos + obj->nedg;
obj->pins = (ivl_nexus_t*)calloc(npins, sizeof(ivl_nexus_t)); obj->pins = (ivl_nexus_t*)calloc(npins, sizeof(ivl_nexus_t));
} else { } else {