@@ -, +, @@ --- src/common/xchat.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) --- a/src/common/xchat.c +++ a/src/common/xchat.c @@ -349,6 +349,8 @@ session_new (server *serv, char *from, int type, int focus) session *sess; sess = malloc (sizeof (struct session)); + if (sess == NULL) + return NULL; memset (sess, 0, sizeof (struct session)); sess->server = serv; --