From 5197200fb3267f5ac5133ffdadce907014cd2fdc Mon Sep 17 00:00:00 2001 From: Giles Atkinson <“gatk555@gmail.com”> Date: Tue, 21 Mar 2023 21:01:06 +0000 Subject: [PATCH] Fix crash reported by Brian Taylor. If "source" is used after analysis, the circuit is both deleted and destroyed. Beware of double frees. --- src/xspice/evt/evtsetup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xspice/evt/evtsetup.c b/src/xspice/evt/evtsetup.c index 761a40bba..62024531d 100644 --- a/src/xspice/evt/evtsetup.c +++ b/src/xspice/evt/evtsetup.c @@ -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);