]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspsocket.cpp
Add a snotice when a user tries to use WEBIRC without matching any configured blocks.
[user/henk/code/inspircd.git] / 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))