aboutsummaryrefslogtreecommitdiff
path: root/src/abd
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-05 16:32:34 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-05 16:32:34 +0200
commite31c1d4a9f78c4e31fda1f98fe349b33abdd01a2 (patch)
tree61df772a93f7f21af7c715ddd4b9a3f1a50e0509 /src/abd
parent1437556645417e6302862845e7ebcbd4c9908357 (diff)
downloadgnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz
gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/abd')
-rw-r--r--src/abd/gnunet-abd.c2
-rw-r--r--src/abd/gnunet-service-abd.c18
2 files changed, 10 insertions, 10 deletions
diff --git a/src/abd/gnunet-abd.c b/src/abd/gnunet-abd.c
index f7e03fb4a..963d9207a 100644
--- a/src/abd/gnunet-abd.c
+++ b/src/abd/gnunet-abd.c
@@ -723,7 +723,7 @@ sign_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego)
723 GNUNET_free (dele); 723 GNUNET_free (dele);
724 printf ("%s\n", res); 724 printf ("%s\n", res);
725 725
726 GNUNET_free_non_null (ego_name); 726 GNUNET_free (ego_name);
727 ego_name = NULL; 727 ego_name = NULL;
728 728
729 GNUNET_SCHEDULER_shutdown (); 729 GNUNET_SCHEDULER_shutdown ();
diff --git a/src/abd/gnunet-service-abd.c b/src/abd/gnunet-service-abd.c
index 36b0009ef..569d42295 100644
--- a/src/abd/gnunet-service-abd.c
+++ b/src/abd/gnunet-service-abd.c
@@ -364,14 +364,14 @@ print_deleset (struct DelegationSetQueueEntry *dsentry, char *text)
364static void 364static void
365cleanup_dsq_entry (struct DelegationSetQueueEntry *ds_entry) 365cleanup_dsq_entry (struct DelegationSetQueueEntry *ds_entry)
366{ 366{
367 GNUNET_free_non_null (ds_entry->issuer_key); 367 GNUNET_free (ds_entry->issuer_key);
368 GNUNET_free_non_null (ds_entry->issuer_attribute); 368 GNUNET_free (ds_entry->issuer_attribute);
369 GNUNET_free_non_null (ds_entry->attr_trailer); 369 GNUNET_free (ds_entry->attr_trailer);
370 // those fields are only set/used in bw search 370 // those fields are only set/used in bw search
371 if (ds_entry->from_bw) 371 if (ds_entry->from_bw)
372 { 372 {
373 GNUNET_free_non_null (ds_entry->lookup_attribute); 373 GNUNET_free (ds_entry->lookup_attribute);
374 GNUNET_free_non_null (ds_entry->unresolved_attribute_delegation); 374 GNUNET_free (ds_entry->unresolved_attribute_delegation);
375 } 375 }
376 if (NULL != ds_entry->lookup_request) 376 if (NULL != ds_entry->lookup_request)
377 { 377 {
@@ -380,9 +380,9 @@ cleanup_dsq_entry (struct DelegationSetQueueEntry *ds_entry)
380 } 380 }
381 if (NULL != ds_entry->delegation_chain_entry) 381 if (NULL != ds_entry->delegation_chain_entry)
382 { 382 {
383 GNUNET_free_non_null ( 383 GNUNET_free (
384 ds_entry->delegation_chain_entry->subject_attribute); 384 ds_entry->delegation_chain_entry->subject_attribute);
385 GNUNET_free_non_null (ds_entry->delegation_chain_entry->issuer_attribute); 385 GNUNET_free (ds_entry->delegation_chain_entry->issuer_attribute);
386 GNUNET_free (ds_entry->delegation_chain_entry); 386 GNUNET_free (ds_entry->delegation_chain_entry);
387 } 387 }
388 // Free DQ entries 388 // Free DQ entries
@@ -423,11 +423,11 @@ cleanup_handle (struct VerifyRequestHandle *vrh)
423 GNUNET_CONTAINER_DLL_remove (vrh->del_chain_head, 423 GNUNET_CONTAINER_DLL_remove (vrh->del_chain_head,
424 vrh->del_chain_tail, 424 vrh->del_chain_tail,
425 del_entry); 425 del_entry);
426 GNUNET_free_non_null (del_entry->delegate); 426 GNUNET_free (del_entry->delegate);
427 GNUNET_free (del_entry); 427 GNUNET_free (del_entry);
428 } 428 }
429 } 429 }
430 GNUNET_free_non_null (vrh->issuer_attribute); 430 GNUNET_free (vrh->issuer_attribute);
431 GNUNET_free (vrh); 431 GNUNET_free (vrh);
432} 432}
433 433