]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix minor memory leak, patch by Darom. Closes bug #699. Thanks!`
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 3 Feb 2009 21:06:47 +0000 (21:06 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 3 Feb 2009 21:06:47 +0000 (21:06 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11025 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspsocket.cpp

index 40a72112120969f95719f2dca1cda25f4d3b5655..0087b681aff4e0e21b7decc95a353dcab5fe8da4 100644 (file)
@@ -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))