mirror of
https://github.com/anope/anope.git
synced 2026-07-01 16:26:38 +02:00
BUILD : 1.7.9 (788) BUGS : 374 NOTES : Moved free() to after sending the EVENT_PART_CHANNEL event, so the event does not use an already freed variable
git-svn-id: svn://svn.anope.org/anope/trunk@788 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@548 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
e203904efd
commit
df7cd78fa8
+1
-1
@@ -685,9 +685,9 @@ void do_part(const char *source, int ac, char **av)
|
||||
c->prev->next = c->next;
|
||||
else
|
||||
user->chans = c->next;
|
||||
free(c);
|
||||
send_event(EVENT_PART_CHANNEL, 3, EVENT_STOP, user->nick,
|
||||
c->chan->name);
|
||||
free(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -858,7 +858,7 @@ int parse(char *buf, int linenum, int reload)
|
||||
|
||||
if (n == lenof(directives)) {
|
||||
/* error(linenum, "Unknown directive `%s'", dir);
|
||||
return 1; *//* don't cause abort */
|
||||
return 1; *//* don't cause abort */
|
||||
}
|
||||
|
||||
return retval;
|
||||
|
||||
Reference in New Issue
Block a user