提交 f42be834 编写于 作者: S Shengliang Guan

memory leak in sdb

上级 8017f458
......@@ -71,10 +71,10 @@ void dnodeCleanupMnodePeer() {
SMPeerWorker *pWorker = tsMPeerPool.peerWorker + i;
if (pWorker->thread) {
pthread_join(pWorker->thread, NULL);
taosCloseQset(tsMPeerQset);
}
}
taosCloseQset(tsMPeerQset);
tfree(tsMPeerPool.peerWorker);
dPrint("dnode mpeer is closed");
}
......
......@@ -73,10 +73,10 @@ void dnodeCleanupMnodeWrite() {
SMWriteWorker *pWorker = tsMWritePool.writeWorker + i;
if (pWorker->thread) {
pthread_join(pWorker->thread, NULL);
taosCloseQset(tsMWriteQset);
}
}
taosCloseQset(tsMWriteQset);
tfree(tsMWritePool.writeWorker);
dPrint("dnode mwrite is closed");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册