From 4dff827763f7872c963ac99cac9842e0e7447de6 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 4 Mar 2020 14:46:35 +0100 Subject: [PATCH] prevent crash if premature exit (without ckt) --- src/frontend/runcoms2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/runcoms2.c b/src/frontend/runcoms2.c index cb42e38ab..7f2d10826 100644 --- a/src/frontend/runcoms2.c +++ b/src/frontend/runcoms2.c @@ -243,7 +243,8 @@ com_remcirc(wordlist *wl) #if defined(XSPICE) && defined(SIMULATOR) /* remove event queues, if XSPICE and not nutmeg */ - EVTunsetup(ft_curckt->ci_ckt); + if (ft_curckt->ci_ckt) + EVTunsetup(ft_curckt->ci_ckt); #endif if_cktfree(ft_curckt->ci_ckt, ft_curckt->ci_symtab);