From a2f3b82db39cbd78d05483c5c95ca17c980866e0 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 12 Nov 2023 14:31:51 +0200 Subject: [PATCH] whisper : free backend instances in whisper_state --- whisper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/whisper.cpp b/whisper.cpp index 8915aca5..244cfeb1 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -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; } }