From b5994b31e2f7cff5f869bcb844cdf42b783a57c2 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Sun, 8 Oct 2023 13:33:02 +0800 Subject: [PATCH] fix mem leak --- source/libs/stream/src/streamSnapshot.c | 1 - 1 file changed, 1 deletion(-) diff --git a/source/libs/stream/src/streamSnapshot.c b/source/libs/stream/src/streamSnapshot.c index d261745669..f66edb2b34 100644 --- a/source/libs/stream/src/streamSnapshot.c +++ b/source/libs/stream/src/streamSnapshot.c @@ -154,7 +154,6 @@ int32_t streamSnapHandleInit(SStreamSnapHandle* pHandle, char* path, int64_t chk TdDirPtr pDir = taosOpenDir(tdir); if (NULL == pDir) { - taosMemoryFree(tdir); stError("%s failed to open %s", STREAM_STATE_TRANSFER, tdir); goto _err; }