From df7cd78fa8bbc2a68ec14da395a566b5bc0eb53f Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Thu, 12 May 2005 16:51:57 +0000 Subject: 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 --- src/channels.c | 2 +- src/config.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/channels.c b/src/channels.c index 9b8efc715..f5e99ffa9 100644 --- a/src/channels.c +++ b/src/channels.c @@ -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); } } } diff --git a/src/config.c b/src/config.c index 2e735abe0..07c7f2995 100644 --- a/src/config.c +++ b/src/config.c @@ -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; -- cgit