aboutsummaryrefslogtreecommitdiffstats
path: root/ipc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-11 11:30:27 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-11 11:30:27 +0100
commit1e52e1ff518987092cfe94bc5c9c4479ed535019 (patch)
tree59a0f7c6725f37703797b8825058356ec6bf1f27 /ipc.c
parente92c4f4f63ca0ba9ac6f959f7ff894ad2fc72a04 (diff)
When cleaning up queries, q->data is free()d. Even if it turns out to be
the "struct irc" containing all data belonging to a session. Sanitise memory management a little bit here. (There are some memory leaks in here too that need to be fixed at some point.)
Diffstat (limited to 'ipc.c')
-rw-r--r--ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc.c b/ipc.c
index 32e58cb7..9a100465 100644
--- a/ipc.c
+++ b/ipc.c
@@ -323,7 +323,7 @@ static void ipc_child_cmd_takeover( irc_t *irc, char **cmd )
"You're already connected to this server. "
"Would you like to take over this session?",
ipc_child_cmd_takeover_yes,
- ipc_child_cmd_takeover_no, irc );
+ ipc_child_cmd_takeover_no, NULL, irc );
/* This one's going to connect to accounts, avoid that. */
b_event_remove( irc->login_source_id );