Merge pull request #28197 from taosdata/fix/fixDoubleSendMain

fix double free
This commit is contained in:
Hongze Cheng 2024-09-29 21:30:23 +08:00 committed by GitHub
commit 0f4456bd8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ static void httpHandleReq(SHttpMsg* msg) {
tError("http-report failed to connect to http-server,dst:%s:%d, chanId:%" PRId64 ", seq:%" PRId64 ", reson:%s",
cli->addr, cli->port, chanId, cli->seq, uv_strerror(ret));
httpFailFastMayUpdate(http->connStatusTable, cli->addr, cli->port, 0);
destroyHttpClient(cli);
uv_close((uv_handle_t*)&cli->tcp, httpDestroyClientCb);
}
TAOS_UNUSED(taosReleaseRef(httpRefMgt, chanId));
return;