avoid mem leak

This commit is contained in:
yihaoDeng 2022-08-09 09:35:26 +08:00
parent 2e953bc714
commit 72800f4c87
1 changed files with 1 additions and 0 deletions

View File

@ -1381,6 +1381,7 @@ int transReleaseCliHandle(void* handle) {
tGDebug("send release request at thread:%08" PRId64 "", pThrd->pid);
if (0 != transAsyncSend(pThrd->asyncPool, &cmsg->q)) {
taosMemoryFree(cmsg);
return -1;
}
return 0;