summaryrefslogtreecommitdiff
path: root/src/chanserv.c
diff options
context:
space:
mode:
authorcertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-02-11 21:42:52 +0000
committercertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-02-11 21:42:52 +0000
commita3e5ec9638c4f4c6ea08140e200f370e09f6cb6c (patch)
treed80c26a09d74dde1f98092df16862c2528ca5c04 /src/chanserv.c
parent80e5f30a4994a069481ba75ccce0672911de10a8 (diff)
BUILD : 1.7.13 (965) BUGS : 442 437 432 431 420 NOTES : Fixed a few memleaks.
git-svn-id: svn://svn.anope.org/anope/trunk@965 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@690 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/chanserv.c')
-rw-r--r--src/chanserv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chanserv.c b/src/chanserv.c
index 6c8147bb6..6b9d65cf2 100644
--- a/src/chanserv.c
+++ b/src/chanserv.c
@@ -1376,6 +1376,7 @@ int check_should_owner(User * user, char *chan)
tmp = stripModePrefix(ircd->ownerset);
anope_cmd_mode(whosends(ci), chan, "+o%s %s %s", tmp, user->nick,
user->nick);
+ free(tmp);
return 1;
}
@@ -1396,6 +1397,7 @@ int check_should_protect(User * user, char *chan)
tmp = stripModePrefix(ircd->adminset);
anope_cmd_mode(whosends(ci), chan, "+o%s %s %s", tmp, user->nick,
user->nick);
+ free(tmp);
return 1;
}