Merge pull request #15870 from taosdata/fix/rpcLeakmem
fix: avoid mem leak
This commit is contained in:
commit
90aa644e4d
|
@ -1381,6 +1381,7 @@ int transReleaseCliHandle(void* handle) {
|
||||||
tGDebug("send release request at thread:%08" PRId64 "", pThrd->pid);
|
tGDebug("send release request at thread:%08" PRId64 "", pThrd->pid);
|
||||||
|
|
||||||
if (0 != transAsyncSend(pThrd->asyncPool, &cmsg->q)) {
|
if (0 != transAsyncSend(pThrd->asyncPool, &cmsg->q)) {
|
||||||
|
taosMemoryFree(cmsg);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue