From 7a40c9a5b48b15668768f6aa46ec5e89dbd6e952 Mon Sep 17 00:00:00 2001 From: Andrew Wilcox Date: Thu, 15 Oct 2015 17:13:49 -0500 Subject: [PATCH] monitor: don't use already-freed pointer, unlike the moronic atheme developers --- src/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monitor.c b/src/monitor.c index 6444ed1f..25df1793 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -146,7 +146,7 @@ clear_monitor(struct Client *client_p) rb_dlinkFindDestroy(client_p, &monptr->users); rb_free_rb_dlink_node(ptr); - free_monitor(ptr->data); + free_monitor(monptr); } client_p->localClient->monitor_list.head = client_p->localClient->monitor_list.tail = NULL;