summaryrefslogtreecommitdiff
path: root/src/channels.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/channels.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/channels.c')
-rw-r--r--src/channels.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/channels.c b/src/channels.c
index 8156b1daf..8f77d8fdd 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -979,6 +979,7 @@ void do_sjoin(const char *source, int ac, char **av)
alog("debug: SJOIN for nonexistent user %s on %s", s,
av[1]);
}
+ free(s);
return;
}
@@ -1838,6 +1839,7 @@ void do_mass_mode(char *modes)
for (i = 0; i < 1024; i++) {
for (c = chanlist[i]; c; c = c->next) {
if (c->bouncy_modes) {
+ free(myModes);
return;
} else {
anope_cmd_mode(s_OperServ, c->name, "%s", modes);
@@ -1845,6 +1847,7 @@ void do_mass_mode(char *modes)
}
}
}
+ free(myModes);
}
/*************************************************************************/