0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-30 14:24:40 +02:00

monitor: don't use already-freed pointer, unlike the moronic atheme developers

This commit is contained in:
Andrew Wilcox 2015-10-15 17:13:49 -05:00
parent 5f8fb56d02
commit 7a40c9a5b4

View file

@ -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;