From 1f7d84b27058292cebdfb1b4cde88273040b0c94 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 20 Aug 2018 00:25:21 +0200 Subject: [PATCH] trivial patch to avoid memory leaks during transient noise generation. This has to be replaced by a rewrite of the noise generating code. --- src/frontend/trannoise/1-f-code.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/trannoise/1-f-code.c b/src/frontend/trannoise/1-f-code.c index 9258d1890..4af666ee5 100644 --- a/src/frontend/trannoise/1-f-code.c +++ b/src/frontend/trannoise/1-f-code.c @@ -142,6 +142,7 @@ trnoise_state_gen(struct trnoise_state *this, CKTcircuit *ckt) } #endif + tfree(this->oneof); /* FIXME, this is just a trivial trial to avoid memory leaks */ this->oneof = TMALLOC(double, newsteps); this->oneof_length = newsteps;