From f7705de2c7887e37974a8c70a0be84a185e5de6b 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 */