From 9d389c24b4bc0cb4c444bf4838e1e9255e46e5ac Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 19 May 2021 18:05:42 +0200 Subject: [PATCH] Plug another memory leak in LTRA transmission line --- src/spicelib/analysis/cktdest.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/spicelib/analysis/cktdest.c b/src/spicelib/analysis/cktdest.c index 9d0d2c6fd..f9024209e 100644 --- a/src/spicelib/analysis/cktdest.c +++ b/src/spicelib/analysis/cktdest.c @@ -79,6 +79,10 @@ CKTdestroy(CKTcircuit *ckt) ckt->CKTnodes = NULL; ckt->CKTlastNode = NULL; + /* LTRA code addition */ + if (ckt->CKTtimePoints != NULL) + FREE(ckt->CKTtimePoints); + FREE(ckt->CKTrhs); FREE(ckt->CKTrhsOld); FREE(ckt->CKTrhsSpare);