Skip to content

Commit a1a1355

Browse files
committed
free memory still allocated in common struct when finished
1 parent 90ec41e commit a1a1355

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/denoise.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ DenoiseState *rnnoise_create(RNNModel *model) {
277277
}
278278

279279
void rnnoise_destroy(DenoiseState *st) {
280+
if (common.init) opus_fft_free(common.kfft, 0);
280281
free(st->rnn.vad_gru_state);
281282
free(st->rnn.noise_gru_state);
282283
free(st->rnn.denoise_gru_state);

0 commit comments

Comments
 (0)