From 7815e446552d69a5a65e7e1456dcdbb0191dae4c Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 16 Aug 2023 09:48:11 +0800 Subject: [PATCH] fix invalid free --- source/libs/stream/src/streamBackendRocksdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/libs/stream/src/streamBackendRocksdb.c b/source/libs/stream/src/streamBackendRocksdb.c index 80bd89ec67..4d3d70dcd1 100644 --- a/source/libs/stream/src/streamBackendRocksdb.c +++ b/source/libs/stream/src/streamBackendRocksdb.c @@ -287,11 +287,10 @@ _EXIT: taosThreadMutexDestroy(&pHandle->mutex); taosThreadMutexDestroy(&pHandle->cfMutex); taosHashCleanup(pHandle->cfInst); - // rocksdb_compactionfilterfactory_destroy(pHandle->filterFactory); tdListFree(pHandle->list); - taosMemoryFree(backendPath); taosMemoryFree(pHandle); qDebug("failed to init stream backend at %s", backendPath); + taosMemoryFree(backendPath); return NULL; } void streamBackendCleanup(void* arg) {