From ab5750dbebe913f2a75117fd01a7f0d7fcc34dd3 Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 23 Oct 2009 20:03:59 +0000 Subject: Fix memory leaks on reloadmodule and spanningtree unload while connecting servers git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11960 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/utils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index 0b9b8da3b..e5012dcba 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -165,6 +165,12 @@ CullResult SpanningTreeUtilities::cull() } } + for(std::map >::iterator i = timeoutlist.begin(); i != timeoutlist.end(); ++i) + { + TreeSocket* s = i->first; + ServerInstance->GlobalCulls.AddItem(s); + } + ServerUser->uuid = TreeRoot->GetID(); ServerUser->cull(); delete ServerUser; -- cgit v1.2.3