Fix crash when a server or attempt by an oper exits.
This commit is contained in:
parent
39aff273d8
commit
72b8a371c5
|
@ -1952,7 +1952,7 @@ allocate_away(struct Client *client_p)
|
||||||
void
|
void
|
||||||
free_away(struct Client *client_p)
|
free_away(struct Client *client_p)
|
||||||
{
|
{
|
||||||
if(client_p->user->away != NULL) {
|
if(client_p->user != NULL && client_p->user->away != NULL) {
|
||||||
rb_bh_free(away_heap, client_p->user->away);
|
rb_bh_free(away_heap, client_p->user->away);
|
||||||
client_p->user->away = NULL;
|
client_p->user->away = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue