1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 02:03:12 +02:00

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
This commit is contained in:
cyberbotx
2009-06-15 20:25:08 +00:00
parent 2cc4ace60b
commit 157dfbd5c6
+2
View File
@@ -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)))