From ea01f1eb85dcc83a1cafd8946a224bcc1b0646b3 Mon Sep 17 00:00:00 2001 From: Yihao Deng Date: Thu, 4 Jul 2024 06:38:14 +0000 Subject: [PATCH] fix comment --- source/libs/stream/src/streamSnapshot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/libs/stream/src/streamSnapshot.c b/source/libs/stream/src/streamSnapshot.c index 160bd3525d..bbf7f5499d 100644 --- a/source/libs/stream/src/streamSnapshot.c +++ b/source/libs/stream/src/streamSnapshot.c @@ -577,8 +577,7 @@ int32_t streamSnapWriterOpen(void* pMeta, int64_t sver, int64_t ever, char* path pHandle->pDbSnapSet = taosArrayInit(8, sizeof(SBackendSnapFile2)); if (pHandle->pDbSnapSet == NULL) { terrno = TSDB_CODE_OUT_OF_MEMORY; - taosMemoryFree(pHandle->metaPath); - taosMemoryFree(pWriter); + streamSnapWriterClose(pWriter, 0); return terrno; }