Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

fix possible memory leak of funasr-wss-client (#1913)

Johntheprime685550515ed8
diff --git a/runtime/websocket/bin/funasr-wss-client-2pass.cpp b/runtime/websocket/bin/funasr-wss-client-2pass.cpp
index 0cbd10e23..6c3a4dd4f 100644
--- a/runtime/websocket/bin/funasr-wss-client-2pass.cpp
+++ b/runtime/websocket/bin/funasr-wss-client-2pass.cpp
@@ -449,6 +449,7 @@ class WebsocketClient {
m_client.get_alog().write(websocketpp::log::alevel::app,
"Send Error: " + ec.message());
}
+ delete[] iArray;
Pa_Sleep(20); // sleep for 20ms
}