whisper : free backend instances in whisper_state

This commit is contained in:
Georgi Gerganov 2023-11-12 14:31:51 +02:00
parent 76c8b5235b
commit a2f3b82db3
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -3186,6 +3186,8 @@ void whisper_free_state(struct whisper_state * state)
whisper_allocr_free(state->alloc_cross);
whisper_allocr_free(state->alloc_decode);
ggml_backend_free(state->backend);
delete state;
}
}