Skip to content

Commit 0f4456b

Browse files
authored
Merge pull request #28197 from taosdata/fix/fixDoubleSendMain
fix double free
2 parents f8b4658 + 22c4444 commit 0f4456b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/libs/transport/src/thttp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ static void httpHandleReq(SHttpMsg* msg) {
677677
tError("http-report failed to connect to http-server,dst:%s:%d, chanId:%" PRId64 ", seq:%" PRId64 ", reson:%s",
678678
cli->addr, cli->port, chanId, cli->seq, uv_strerror(ret));
679679
httpFailFastMayUpdate(http->connStatusTable, cli->addr, cli->port, 0);
680-
destroyHttpClient(cli);
680+
uv_close((uv_handle_t*)&cli->tcp, httpDestroyClientCb);
681681
}
682682
TAOS_UNUSED(taosReleaseRef(httpRefMgt, chanId));
683683
return;

0 commit comments

Comments
 (0)