X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Finspsocket.cpp;h=0087b681aff4e0e21b7decc95a353dcab5fe8da4;hb=c4d7f00f7497e107f00d9dcf1dea49ddba14297e;hp=40a72112120969f95719f2dca1cda25f4d3b5655;hpb=43847ec9c7e1a195163eb4c529f1c92fd1ace0a4;p=user%2Fhenk%2Fcode%2Finspircd.git 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))