From cd9abda60684b8ce4fc39e407cc75ee3dda21604 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 29 Sep 2025 16:41:56 +0000 Subject: [PATCH] queue: Allocate the correct amount of memory This has been found by the clang static analyzer. Signed-off-by: Michael Tremer --- src/daemon/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/queue.c b/src/daemon/queue.c index c4a5576..bd1fd4c 100644 --- a/src/daemon/queue.c +++ b/src/daemon/queue.c @@ -261,7 +261,7 @@ int collecty_queue_submit(collecty_queue* self, return collecty_queue_object_append_sample(self, module, object, o, sample); // Allocate some memory - o = calloc(1, sizeof(*self)); + o = calloc(1, sizeof(*o)); if (!o) return -errno; -- 2.47.3