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:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user