Merge pull request #15870 from taosdata/fix/rpcLeakmem

fix: avoid mem leak
This commit is contained in:
Yihao Deng 2022-08-09 10:42:45 +08:00 committed by GitHub
commit 90aa644e4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;