Skip to content

Commit

Permalink
Merged fix proposed here splatlab#9
Browse files Browse the repository at this point in the history
  • Loading branch information
robymetallo committed Feb 12, 2020
1 parent 8980beb commit a645a2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gqf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,8 @@ bool qf_malloc(QF *qf, uint64_t nslots, uint64_t key_bits, uint64_t
uint64_t total_num_bytes = qf_init(qf, nslots, key_bits, value_bits,
hash, seed, NULL, 0);

void *buffer = malloc(total_num_bytes);
// void *buffer = malloc(total_num_bytes);
void *buffer = calloc(total_num_bytes, 8);
if (buffer == NULL) {
perror("Couldn't allocate memory for the CQF.");
exit(EXIT_FAILURE);
Expand Down

0 comments on commit a645a2f

Please sign in to comment.