fix indirect leak

This commit is contained in:
yihaoDeng 2024-09-06 14:28:34 +08:00
parent 0b21b7dff1
commit b6b0e266eb
1 changed files with 5 additions and 5 deletions

View File

@ -1360,11 +1360,11 @@ void* transInitServer(uint32_t ip, uint32_t port, char* label, int numOfThreads,
goto End;
}
// if (false == taosValidIpAndPort(srv->ip, srv->port)) {
// code = TAOS_SYSTEM_ERROR(errno);
// tError("invalid ip/port, %d:%d, reason:%s", srv->ip, srv->port, terrstr());
// goto End;
// }
if (false == taosValidIpAndPort(srv->ip, srv->port)) {
code = TAOS_SYSTEM_ERROR(errno);
tError("invalid ip/port, %d:%d, reason:%s", srv->ip, srv->port, terrstr());
goto End;
}
char pipeName[PATH_MAX];
#if defined(WINDOWS) || defined(DARWIN)