Fix crash when a server or attempt by an oper exits.
This commit is contained in:
parent
75c5813806
commit
d18a9c05fb
1 changed files with 1 additions and 1 deletions
|
@ -1952,7 +1952,7 @@ allocate_away(struct Client *client_p)
|
|||
void
|
||||
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);
|
||||
client_p->user->away = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue