summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-03 21:06:47 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-03 21:06:47 +0000
commit9e29535857e1bd55a25737e7846f095e182dede2 (patch)
tree4e04ff0485a73711474ba7da84f59e632ace55a8
parentb57708f4da4789bab7121112aef3acd12a9834c9 (diff)
Fix minor memory leak, patch by Darom. Closes bug #699. Thanks!`
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11025 e03df62e-2008-0410-955e-edbf42e46eb7
-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))