Replace unchecked allocations with calls to xmalloc.h functions

This commit is contained in:
Craig Barnes 2024-01-25 07:03:50 +00:00
parent 43e27a8843
commit 91b22ae21a
6 changed files with 7 additions and 7 deletions

View file

@ -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 ||