fix invalid free

This commit is contained in:
yihaoDeng 2023-08-16 09:48:11 +08:00
parent 7fd918962f
commit 7815e44655
1 changed files with 1 additions and 2 deletions

View File

@ -287,11 +287,10 @@ _EXIT:
taosThreadMutexDestroy(&pHandle->mutex); taosThreadMutexDestroy(&pHandle->mutex);
taosThreadMutexDestroy(&pHandle->cfMutex); taosThreadMutexDestroy(&pHandle->cfMutex);
taosHashCleanup(pHandle->cfInst); taosHashCleanup(pHandle->cfInst);
// rocksdb_compactionfilterfactory_destroy(pHandle->filterFactory);
tdListFree(pHandle->list); tdListFree(pHandle->list);
taosMemoryFree(backendPath);
taosMemoryFree(pHandle); taosMemoryFree(pHandle);
qDebug("failed to init stream backend at %s", backendPath); qDebug("failed to init stream backend at %s", backendPath);
taosMemoryFree(backendPath);
return NULL; return NULL;
} }
void streamBackendCleanup(void* arg) { void streamBackendCleanup(void* arg) {