summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index 40a721121..0087b681a 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -263,6 +263,7 @@ bool BufferedSocket::DoConnect(unsigned long maxtime)
this->OnError(I_ERR_CONNECT);
this->Close();
this->state = I_ERROR;
+ delete[] addr;
return false;
}
@@ -271,6 +272,7 @@ bool BufferedSocket::DoConnect(unsigned long maxtime)
}
this->state = I_CONNECTING;
+ delete[] addr;
if (this->fd > -1)
{
if (!this->ServerInstance->SE->AddFd(this))