historydb: Fix valgrind builds

This commit is contained in:
Heikki Hannikainen 2021-09-01 21:15:14 +00:00
parent d86a31d183
commit 78bc298df0
1 changed files with 1 additions and 1 deletions

View File

@ -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
}