aboutsummaryrefslogtreecommitdiff
path: root/src/set/ibf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/set/ibf.c')
-rw-r--r--src/set/ibf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/set/ibf.c b/src/set/ibf.c
index 4d40f1f35..152f9b190 100644
--- a/src/set/ibf.c
+++ b/src/set/ibf.c
@@ -78,7 +78,7 @@ ibf_create (uint32_t size, uint8_t hash_num)
78 78
79 /* TODO: use malloc_large */ 79 /* TODO: use malloc_large */
80 80
81 ibf = GNUNET_malloc (sizeof (struct InvertibleBloomFilter)); 81 ibf = GNUNET_new (struct InvertibleBloomFilter);
82 ibf->count = GNUNET_malloc (size * sizeof (uint8_t)); 82 ibf->count = GNUNET_malloc (size * sizeof (uint8_t));
83 ibf->key_sum = GNUNET_malloc (size * sizeof (struct IBF_Key)); 83 ibf->key_sum = GNUNET_malloc (size * sizeof (struct IBF_Key));
84 ibf->key_hash_sum = GNUNET_malloc (size * sizeof (struct IBF_KeyHash)); 84 ibf->key_hash_sum = GNUNET_malloc (size * sizeof (struct IBF_KeyHash));