fix: free thread save memory before set null
This commit is contained in:
parent
4a8d5355a7
commit
bdfb342ec8
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue