Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DPIC: reset diffstate_buffer to nullptr after free (#278)
DPI-C functions are using the diffstate_buffer to check whether the corresponding data structures have been initialized. However, we are not resetting it to nullptr after free. If the simulation environment is reset manually and restarted, then this pointer will be a dangling pointer and corrupt the next DPI-C calls.
- Loading branch information