X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/d3455e2c7e2f9040e1b7628d9cf52b26a24dcefc..99a80a91512121da8f41c6ced95f6043e558c424:/src/client.c diff --git a/src/client.c b/src/client.c index a34b9e8..aa2a0e9 100644 --- a/src/client.c +++ b/src/client.c @@ -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; }