fix double free

This commit is contained in:
yihaoDeng 2024-09-29 19:56:46 +08:00
parent 284a041d1f
commit 78a5642676
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", 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)); cli->addr, cli->port, chanId, cli->seq, uv_strerror(ret));
httpFailFastMayUpdate(http->connStatusTable, cli->addr, cli->port, 0); httpFailFastMayUpdate(http->connStatusTable, cli->addr, cli->port, 0);
uv_tcp_close_reset((uv_tcp_t*)&cli->tcp, httpDestroyClientCb); uv_close((uv_handle_t*)&cli->tcp, clientCloseCb);
} }
TAOS_UNUSED(taosReleaseRef(httpRefMgt, chanId)); TAOS_UNUSED(taosReleaseRef(httpRefMgt, chanId));
return; return;