diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-15 20:25:08 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-15 20:25:08 +0000 |
commit | 157dfbd5c6450c509fa02c6807def1ac9aceba07 (patch) | |
tree | aaf980c546bf78ec498132ca5c385b157426f512 | |
parent | 2cc4ace60b2b16d4d1dea604175c262b956ec747 (diff) |
Fix memory leak in NS SUSPEND, patch by Adam.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2326 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | src/core/ns_suspend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ns_suspend.c b/src/core/ns_suspend.c index eb4e6547f..428f6226c 100644 --- a/src/core/ns_suspend.c +++ b/src/core/ns_suspend.c @@ -66,6 +66,8 @@ class CommandNSSuspend : public Command if (na2->nc == na->nc) { na2->status &= ~(NS_IDENTIFIED | NS_RECOGNIZED); + if (na2->last_quit) + delete [] na2->last_quit; na2->last_quit = sstrdup(reason); /* removes nicktracking */ if ((u2 = finduser(na2->nick))) |