From 06239e567f7ec247d0692e2f0bb3e1b38449eeb9 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 28 Feb 2020 18:12:55 +0100 Subject: [PATCH] plug a memory leak (in case of failing op for tran calculation) --- src/spicelib/analysis/dctran.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/spicelib/analysis/dctran.c b/src/spicelib/analysis/dctran.c index 5515b149d..6e6a03f77 100644 --- a/src/spicelib/analysis/dctran.c +++ b/src/spicelib/analysis/dctran.c @@ -275,7 +275,10 @@ DCtran(CKTcircuit *ckt, fflush(stdout); } - if(converged != 0) return(converged); + if (converged != 0) { + SPfrontEnd->OUTendPlot(job->TRANplot); + return(converged); + } #ifdef XSPICE /* gtri - add - wbk - 12/19/90 - Add IPC stuff */