aboutsummaryrefslogtreecommitdiff
path: root/src/set/strata_estimator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/set/strata_estimator.c')
-rw-r--r--src/set/strata_estimator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/set/strata_estimator.c b/src/set/strata_estimator.c
index c719a5836..a148c1488 100644
--- a/src/set/strata_estimator.c
+++ b/src/set/strata_estimator.c
@@ -89,7 +89,7 @@ strata_estimator_create (unsigned int strata_count, uint32_t ibf_size, uint8_t i
89 89
90 /* fixme: allocate everything in one chunk */ 90 /* fixme: allocate everything in one chunk */
91 91
92 se = GNUNET_malloc (sizeof (struct StrataEstimator)); 92 se = GNUNET_new (struct StrataEstimator);
93 se->strata_count = strata_count; 93 se->strata_count = strata_count;
94 se->ibf_size = ibf_size; 94 se->ibf_size = ibf_size;
95 se->strata = GNUNET_malloc (sizeof (struct InvertibleBloomFilter *) * strata_count); 95 se->strata = GNUNET_malloc (sizeof (struct InvertibleBloomFilter *) * strata_count);
@@ -159,7 +159,7 @@ strata_estimator_dup (struct StrataEstimator *se)
159 struct StrataEstimator *c; 159 struct StrataEstimator *c;
160 int i; 160 int i;
161 161
162 c = GNUNET_malloc (sizeof (struct StrataEstimator)); 162 c = GNUNET_new (struct StrataEstimator);
163 c->strata_count = se->strata_count; 163 c->strata_count = se->strata_count;
164 c->ibf_size = se->ibf_size; 164 c->ibf_size = se->ibf_size;
165 c->strata = GNUNET_malloc (sizeof (struct InvertibleBloomFilter *) * se->strata_count); 165 c->strata = GNUNET_malloc (sizeof (struct InvertibleBloomFilter *) * se->strata_count);