From: Michael Tremer Date: Mon, 29 Sep 2025 16:41:56 +0000 (+0000) Subject: queue: Allocate the correct amount of memory X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd9abda60684b8ce4fc39e407cc75ee3dda21604;p=collecty.git queue: Allocate the correct amount of memory This has been found by the clang static analyzer. Signed-off-by: Michael Tremer --- 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;