From 78bc298df036aa9527f3cba8968361b7631a75fd Mon Sep 17 00:00:00 2001 From: Heikki Hannikainen Date: Wed, 1 Sep 2021 21:15:14 +0000 Subject: [PATCH] historydb: Fix valgrind builds --- src/historydb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/historydb.c b/src/historydb.c index f554f34..140595d 100644 --- a/src/historydb.c +++ b/src/historydb.c @@ -90,7 +90,7 @@ static struct history_cell_t *historydb_alloc(void) #ifndef _FOR_VALGRIND_ return cellmalloc( historydb_cells ); #else - return hmalloc(sizeof(struct history_cell_t)+packet_len); + return hmalloc(sizeof(struct history_cell_t)); #endif }