Fix cache leak issue

This commit is contained in:
Nick Peng
2019-03-15 00:33:44 +08:00
parent 7c51259dff
commit 63db66546c
4 changed files with 33 additions and 20 deletions

View File

@@ -1270,7 +1270,7 @@ static int _DNS_client_create_socket_tls(struct dns_server_info *server_info)
if (connect(fd, (struct sockaddr *)&server_info->addr, server_info->ai_addrlen) != 0) {
if (errno != EINPROGRESS) {
tlog(TLOG_ERROR, "connect failed.");
tlog(TLOG_ERROR, "connect %s failed, %s", server_info->ip, strerror(errno));
goto errout;
}
}