aboutsummaryrefslogtreecommitdiff
path: root/src/set/ibf.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
committerLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
commite0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch)
treeecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/set/ibf.c
parent92fd84dc7ef98452f848a62677c61a2b80b5835e (diff)
downloadgnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz
gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip
malloc -> new
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));