From fbd67ce977cfd318ab3ba90e9cd73cbecf10b1b9 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Mon, 21 Aug 2023 11:50:53 +0800 Subject: [PATCH] fix(stream): fix memory leak. --- source/dnode/mnode/impl/src/mndStream.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/dnode/mnode/impl/src/mndStream.c b/source/dnode/mnode/impl/src/mndStream.c index 2996863e97..9bcded0c04 100644 --- a/source/dnode/mnode/impl/src/mndStream.c +++ b/source/dnode/mnode/impl/src/mndStream.c @@ -1146,6 +1146,7 @@ static int32_t mndProcessStreamDoCheckpoint(SRpcMsg *pReq) { bool nodeUpdated = (taosArrayGetSize(changeInfo.pUpdateNodeList) > 0); taosArrayDestroy(changeInfo.pUpdateNodeList); taosHashCleanup(changeInfo.pDBMap); + taosArrayDestroy(pNodeSnapshot); if (nodeUpdated) { mDebug("stream task not ready due to node update, not generate checkpoint");