From 91b22ae21acd0b3171814b47b0dead027f8da779 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Thu, 25 Jan 2024 07:03:50 +0000 Subject: Replace unchecked allocations with calls to xmalloc.h functions --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server.c') diff --git a/server.c b/server.c index 7cc87152..068ca057 100644 --- a/server.c +++ b/server.c @@ -301,7 +301,7 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data) #undef CHECK_BUF_AND_NULL #undef CHECK_BUF - struct terminal_instance *instance = malloc(sizeof(struct terminal_instance)); + struct terminal_instance *instance = xmalloc(sizeof(struct terminal_instance)); const bool need_to_clone_conf = tll_length(overrides)> 0 || -- cgit v1.3