summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-07-22 18:42:51 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-07-22 18:42:51 +0000
commit313417e92ad12f4f3bedf1cc0dc7a8898c072e6d (patch)
tree84edff30e47edc8fd1092c85e16f43ac6da33af4 /src
parent58f85919b3bdf31b026e30a5cb0390d00afe9004 (diff)
BUILD : 1.7.4 (275) BUGS : 126 NOTES : Fixed the 3rd mem leak identified in this bug report, i didnt find the first two however :/
git-svn-id: svn://svn.anope.org/anope/trunk@275 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@178 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/nickserv.c2
-rw-r--r--src/users.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/nickserv.c b/src/nickserv.c
index ec10e4fe0..465f14fa5 100644
--- a/src/nickserv.c
+++ b/src/nickserv.c
@@ -1518,7 +1518,7 @@ static int delcore(NickCore * nc)
free(nc->greet);
if (nc->url)
free(nc->url);
-
+
if (nc->access) {
for (i = 0; i < nc->accesscount; i++) {
if (nc->access[i])
diff --git a/src/users.c b/src/users.c
index abf4b4b29..6c6d59c02 100644
--- a/src/users.c
+++ b/src/users.c
@@ -98,6 +98,7 @@ static User *new_user(const char *nick)
alog("user: New maximum user count: %d", maxusercnt);
}
user->isSuperAdmin = 0; /* always set SuperAdmin to 0 for new users */
+ user->nickTrack = NULL; /* ensure no default tracking nick */
return user;
}
@@ -424,6 +425,9 @@ void delete_user(User * user)
ci = ci2;
}
+ if (user->nickTrack)
+ free(user->nickTrack);
+
moduleCleanStruct(user->moduleData);
if (debug >= 2)