Fix crash reported by Brian Taylor. If "source" is used after

analysis, the circuit is both deleted and destroyed. Beware of
double frees.
This commit is contained in:
Giles Atkinson 2023-03-21 21:01:06 +00:00 committed by Holger Vogt
parent 98333ee89a
commit 5197200fb3
1 changed files with 1 additions and 0 deletions

View File

@ -303,6 +303,7 @@ void Evt_purge_free_outputs(void)
for (i = 0; i < g_evt_num_udn_types; ++i) {
output_event = g_evt_udn_info[i]->free_list;
g_evt_udn_info[i]->free_list = NULL;
while (output_event) {
next = output_event->next;
tfree(output_event->value);