Browse Source

trivial patch to avoid memory leaks during transient noise generation.

This has to be replaced by a rewrite of the noise generating code.
pre-master-46
Holger Vogt 8 years ago
parent
commit
1f7d84b270
  1. 1
      src/frontend/trannoise/1-f-code.c

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

Loading…
Cancel
Save