diff options
author | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
commit | e0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch) | |
tree | ecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/set/ibf.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
Diffstat (limited to 'src/set/ibf.c')
-rw-r--r-- | src/set/ibf.c | 2 |
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)); |