提交 bdfb342e 编写于 作者: A Alex Duan

fix: free thread save memory before set null

上级 4a8d5355
......@@ -788,6 +788,9 @@ int writeVarNames(int type, TAOS_RES* tres) {
void setThreadNull(int type) {
taosThreadMutexLock(&tiresMutex);
if(threads[type]) {
taosMemoryFree(threads[type]);
}
threads[type] = NULL;
taosThreadMutexUnlock(&tiresMutex);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册