From 72c54698c0978a0280102fa8cfb1184f1e44ad1a Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Tue, 6 Feb 2024 11:38:45 +0100 Subject: [PATCH] sources/counter.c: fix memory leak (#558) found by cppcheck --- sources/counter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/counter.c b/sources/counter.c index 92fe97cd..69289dd7 100644 --- a/sources/counter.c +++ b/sources/counter.c @@ -33,6 +33,7 @@ od_bucket_t *od_bucket_create(void) return b; } + free(b); return NULL; }