From 599941771e7d174c3e15f65ab2a1d7d9fefbd5f3 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 17 Jul 2007 19:07:31 +0000 Subject: Stability fixes, some DELETEs here that dont belong any more. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7470 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket2.cpp | 1 - src/modules/m_spanningtree/utils.cpp | 3 --- 2 files changed, 4 deletions(-) (limited to 'src') diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index f518151e9..dcfb2b4aa 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -885,7 +885,6 @@ bool TreeSocket::Inbound_Server(std::deque ¶ms) CheckDupeSocket->SendError("Negotiation collision"); Instance->SE->DelFd(CheckDupeSocket); CheckDupeSocket->Close(); - delete CheckDupeSocket; return false; } /* Now check for fully initialized instances of the server */ diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index 9675a6ac8..9d4fbf41a 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -190,7 +190,6 @@ SpanningTreeUtilities::~SpanningTreeUtilities() { ServerInstance->SE->DelFd(Bindings[i]); Bindings[i]->Close(); - DELETE(Bindings[i]); } while (TreeRoot->ChildCount()) { @@ -200,7 +199,6 @@ SpanningTreeUtilities::~SpanningTreeUtilities() TreeSocket* sock = child_server->GetSocket(); ServerInstance->SE->DelFd(sock); sock->Close(); - DELETE(sock); } } delete TreeRoot; @@ -486,7 +484,6 @@ void SpanningTreeUtilities::ReadConfiguration(bool rebind) { ServerInstance->Log(DEFAULT,"m_spanningtree: Warning: Failed to bind server port: %s:%d: %s",IP.c_str(), portno, strerror(errno)); listener->Close(); - DELETE(listener); } } } -- cgit v1.2.3