trivial patch to avoid memory leaks during transient noise generation.

This has to be replaced by a rewrite of the noise generating code.
This commit is contained in:
Holger Vogt 2018-08-20 00:25:21 +02:00
parent 34fcdda1e2
commit 1f7d84b270
1 changed files with 1 additions and 0 deletions

View File

@ -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;