diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-05 16:32:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-05 16:32:34 +0200 |
commit | e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2 (patch) | |
tree | 61df772a93f7f21af7c715ddd4b9a3f1a50e0509 /src/set | |
parent | 1437556645417e6302862845e7ebcbd4c9908357 (diff) | |
download | gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip |
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/set')
-rw-r--r-- | src/set/gnunet-service-set.c | 4 | ||||
-rw-r--r-- | src/set/gnunet-service-set_union_strata_estimator.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/set/gnunet-service-set.c b/src/set/gnunet-service-set.c index 8b46f68de..2b859d81a 100644 --- a/src/set/gnunet-service-set.c +++ b/src/set/gnunet-service-set.c | |||
@@ -492,7 +492,7 @@ destroy_elements_iterator (void *cls, | |||
492 | { | 492 | { |
493 | struct ElementEntry *ee = value; | 493 | struct ElementEntry *ee = value; |
494 | 494 | ||
495 | GNUNET_free_non_null (ee->mutations); | 495 | GNUNET_free (ee->mutations); |
496 | GNUNET_free (ee); | 496 | GNUNET_free (ee); |
497 | return GNUNET_YES; | 497 | return GNUNET_YES; |
498 | } | 498 | } |
@@ -570,7 +570,7 @@ client_disconnect_cb (void *cls, | |||
570 | content->elements = NULL; | 570 | content->elements = NULL; |
571 | GNUNET_free (content); | 571 | GNUNET_free (content); |
572 | } | 572 | } |
573 | GNUNET_free_non_null (set->excluded_generations); | 573 | GNUNET_free (set->excluded_generations); |
574 | set->excluded_generations = NULL; | 574 | set->excluded_generations = NULL; |
575 | 575 | ||
576 | /* remove set from pending copy requests */ | 576 | /* remove set from pending copy requests */ |
diff --git a/src/set/gnunet-service-set_union_strata_estimator.c b/src/set/gnunet-service-set_union_strata_estimator.c index a59dbbd57..1101a56a6 100644 --- a/src/set/gnunet-service-set_union_strata_estimator.c +++ b/src/set/gnunet-service-set_union_strata_estimator.c | |||
@@ -120,7 +120,7 @@ strata_estimator_read (const void *buf, | |||
120 | if (buf_len != se->strata_count * se->ibf_size * IBF_BUCKET_SIZE) | 120 | if (buf_len != se->strata_count * se->ibf_size * IBF_BUCKET_SIZE) |
121 | { | 121 | { |
122 | GNUNET_break (0); /* very odd error */ | 122 | GNUNET_break (0); /* very odd error */ |
123 | GNUNET_free_non_null (dbuf); | 123 | GNUNET_free (dbuf); |
124 | return GNUNET_SYSERR; | 124 | return GNUNET_SYSERR; |
125 | } | 125 | } |
126 | 126 | ||
@@ -129,7 +129,7 @@ strata_estimator_read (const void *buf, | |||
129 | ibf_read_slice (buf, 0, se->ibf_size, se->strata[i]); | 129 | ibf_read_slice (buf, 0, se->ibf_size, se->strata[i]); |
130 | buf += se->ibf_size * IBF_BUCKET_SIZE; | 130 | buf += se->ibf_size * IBF_BUCKET_SIZE; |
131 | } | 131 | } |
132 | GNUNET_free_non_null (dbuf); | 132 | GNUNET_free (dbuf); |
133 | return GNUNET_OK; | 133 | return GNUNET_OK; |
134 | } | 134 | } |
135 | 135 | ||