summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-12-05 02:27:29 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-12-05 02:27:29 +0000
commite31a0356a4e7f44d934c7fb6711a440525adc602 (patch)
tree99686db621aff4fce8971ae0c57d1f4dbfa52111 /src/main.c
parent671d6c57dad03943f36dbf7d657900aa2e62669d (diff)
BUILD : 1.7.6 (475) BUGS : 126 NOTES : Some valgrind clean up, should fix 126
git-svn-id: svn://svn.anope.org/anope/trunk@475 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@329 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index f7b4089b7..408cd250e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -85,6 +85,8 @@ const char version_flags[] =
" " VER_DEBUG VER_ENCRYPTION VER_THREAD VER_OS VER_GHBNR VER_MYSQL
VER_MODULE;
+extern char *mod_current_buffer;
+
/******** Local variables! ********/
/* Set to 1 if we are waiting for input */
@@ -254,8 +256,15 @@ static void services_shutdown(void)
if (!quitmsg)
quitmsg = "Terminating, reason unknown";
alog("%s", quitmsg);
- if (started)
+ if (started) {
anope_cmd_squit(ServerName, quitmsg);
+ Anope_Free(uplink);
+ Anope_Free(mod_current_buffer);
+ if (ircd->chanmodes) {
+ Anope_Free(ircd->chanmodes);
+ }
+ shut_clean_user();
+ }
disconn(servsock);
}