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:
parent
34fcdda1e2
commit
1f7d84b270
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue