summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspircd.cpp1
-rw-r--r--src/modules/m_dccallow.cpp2
-rw-r--r--src/modules/m_xline_db.cpp1
-rw-r--r--src/server.cpp1
4 files changed, 5 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 120ee2be8..b8192d387 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -150,6 +150,7 @@ void InspIRCd::Cleanup()
DeleteZero(this->PI);
DeleteZero(this->Threads);
DeleteZero(this->Timers);
+ DeleteZero(this->SE);
/* Close logging */
this->Logs->CloseLogs();
DeleteZero(this->Logs);
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index 97f0d2f13..ab6789049 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -470,6 +470,8 @@ class ModuleDCCAllow : public Module
virtual ~ModuleDCCAllow()
{
+ delete Conf;
+ Conf = NULL;
}
virtual Version GetVersion()
diff --git a/src/modules/m_xline_db.cpp b/src/modules/m_xline_db.cpp
index 09a8c242d..d3a75a64c 100644
--- a/src/modules/m_xline_db.cpp
+++ b/src/modules/m_xline_db.cpp
@@ -232,6 +232,7 @@ class ModuleXLineDB : public Module
}
}
+ fclose(f);
return true;
}
diff --git a/src/server.cpp b/src/server.cpp
index c5223561a..cc04d0223 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -43,6 +43,7 @@ void InspIRCd::Exit(int status)
{
this->SendError("Exiting with status " + ConvToStr(status) + " (" + std::string(ExitCodes[status]) + ")");
this->Cleanup();
+ delete this;
}
exit (status);
}