fix: invalid free in unittest

This commit is contained in:
Shengliang Guan 2022-04-23 00:13:09 +08:00
parent ce63ad05a5
commit 5948ddd697
3 changed files with 3 additions and 1 deletions

View File

@ -174,6 +174,7 @@ void dmStopNode(SMgmtWrapper *pWrapper) {
void dmCloseNode(SMgmtWrapper *pWrapper) {
dInfo("node:%s, start to close", pWrapper->name);
pWrapper->deployed = false;
while (pWrapper->refCount > 0) {
taosMsleep(10);

View File

@ -53,6 +53,7 @@ void dmCleanup() {
}
monCleanup();
syncCleanUp();
walCleanUp();
taosStopCacheRefreshWorker();
dInfo("dnode env is cleaned up");

View File

@ -274,7 +274,7 @@ static void vmCleanup(SMgmtWrapper *pWrapper) {
taosMemoryFree(pMgmt);
pWrapper->pMgmt = NULL;
syncCleanUp();
// syncCleanUp();
dInfo("vnode-mgmt is cleaned up");
}