summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/core/tcp_connect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/tcp_connect.cpp b/src/network/core/tcp_connect.cpp
index c4f5415b0..dc7a23bb3 100644
--- a/src/network/core/tcp_connect.cpp
+++ b/src/network/core/tcp_connect.cpp
@@ -45,7 +45,7 @@ TCPConnecter::~TCPConnecter()
this->sockets.clear();
this->sock_to_address.clear();
- freeaddrinfo(this->ai);
+ if (this->ai != nullptr) freeaddrinfo(this->ai);
}
/**