summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-15 20:28:57 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-15 20:28:57 +0000
commit01f65c7e640597bf24db47fdaf4a35eb77371b7e (patch)
tree5caa7de7dbb7804c5dd63ea9da1fcda0cc63d73f
parent958521b8c6be1dafc44f89baeacd1e700099a7a4 (diff)
Fix memory leak in NS SUSPEND, patch by Adam.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2327 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes1
-rw-r--r--src/core/ns_suspend.c2
-rw-r--r--version.log3
3 files changed, 5 insertions, 1 deletions
diff --git a/Changes b/Changes
index 889eb35f5..4b4e5ad56 100644
--- a/Changes
+++ b/Changes
@@ -34,6 +34,7 @@ Provided by Adam <Adam@SubZeroIRC.net> - 2009
05/08 F Allow jupe on all bar uplink and self. [#1076]
05/10 F MySQL query should no longer fail when password/salt are long [#1078]
06/11 F Fixed potential crash in Charybdis protocol module. [ #00]
+06/15 F Fix memory leak in NS SUSPEND. [ #00]
Provided by mooncup <mooncup@anonnet.org> - 2009
02/04 F Automatically reapply vhost on hs off for unreal32. [ #00]
diff --git a/src/core/ns_suspend.c b/src/core/ns_suspend.c
index 8baaec865..acd135e24 100644
--- a/src/core/ns_suspend.c
+++ b/src/core/ns_suspend.c
@@ -115,6 +115,8 @@ int do_suspend(User * u)
na2 = na->nc->aliases.list[i];
if (na2->nc == na->nc) {
na2->status &= ~(NS_IDENTIFIED | NS_RECOGNIZED);
+ if (na2->last_quit)
+ free(na2->last_quit);
na2->last_quit = sstrdup(reason);
/* remove nicktracking */
if ((u2 = finduser(na2->nick))) {
diff --git a/version.log b/version.log
index ee12dbd2f..22c5a7526 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,11 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="0"
VERSION_EXTRA="-svn"
-VERSION_BUILD="2322"
+VERSION_BUILD="2327"
# $Log$ # Changes since 1.8.0 Release
+#Revision 2327 - Fix memory leak in NS SUSPEND, patch by Adam.
#Revision 2322 - Bugfix for bug #1082, remove check for NSModeOnID from NS UPDATE, it's not logical to check for NSModeOnID since you must be identified to use NS UPDATE anyways.
#Revision 2321 - Fix potential crash in Charybdis protocol module, patch by Adam.
#Revision 2316 - Change default of UnRestrictSAdmin to enabled, so hopefully we get less users complaining about their +a being removed and being unable to use /sa* commands.