]> 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 2e9114a2be78e818b55e9c652bcd6811d3987d91..0087b681aff4e0e21b7decc95a353dcab5fe8da4 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -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))