fix: limit session num

This commit is contained in:
yihaoDeng 2023-02-24 23:42:57 +08:00
parent 22b1bc1049
commit 6632231111
1 changed files with 2 additions and 2 deletions

View File

@ -302,7 +302,7 @@ static int32_t taosSendHttpReportImpl(const char* server, const char* uri, uint1
SHttpMsg* msg = taosMemoryMalloc(sizeof(SHttpMsg));
msg->server = taosStrdup(server);
msg->uri = taosStrdup(uri);
msg->uri = taosStrdup(uri);
msg->port = port;
msg->cont = taosMemoryMalloc(contLen);
memcpy(msg->cont, pCont, contLen);
@ -447,7 +447,7 @@ static void transHttpEnvInit() {
void transHttpEnvDestroy() {
// remove http
if (httpRef == -1 || transHttpInit == PTHREAD_ONCE_INIT) {
if (httpRef == -1) {
return;
}
SHttpModule* load = taosAcquireRef(httpRefMgt, httpRef);