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 --- shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shm.c') diff --git a/shm.c b/shm.c index 171459f6..87bd33a7 100644 --- a/shm.c +++ b/shm.c @@ -489,7 +489,7 @@ get_new_buffers(struct buffer_chain *chain, size_t count, else tll_push_front(chain->bufs, buf); - buf->public.dirty = malloc( + buf->public.dirty = xmalloc( chain->pix_instances * sizeof(buf->public.dirty[0])); for (size_t j = 0; j < chain->pix_instances; j++) -- cgit v1.3