diff options
author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-10-13 05:22:13 +0000 |
---|---|---|
committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-10-13 05:22:13 +0000 |
commit | 3fb17634a05f1bd4155d2b7fd851c91fc516d1df (patch) | |
tree | 17fd46a3f19e3f8682693755a5636fc7144999ca /src/operserv.c | |
parent | ee5de492f765f02b09fee772540017fb5ea1007e (diff) |
BUILD : 1.7.5 (392) BUGS : N/A NOTES : More code tidy with strict enabled, some clean up of Unreal32
git-svn-id: svn://svn.anope.org/anope/trunk@392 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@257 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/operserv.c')
-rw-r--r-- | src/operserv.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/operserv.c b/src/operserv.c index 49656ee24..a7f5962a6 100644 --- a/src/operserv.c +++ b/src/operserv.c @@ -1735,6 +1735,8 @@ static int do_clearmodes(User * u) free(bans); + excepts = NULL; + if (ircd->except) { /* Clear excepts */ exceptcount = c->exceptcount; @@ -1751,8 +1753,9 @@ static int do_clearmodes(User * u) free(argv[1]); free(argv[0]); } - - free(excepts); + if (excepts) { + free(excepts); + } } if (ircd->invitemode) { |