aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo-tool
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/peerinfo-tool
parent1437556645417e6302862845e7ebcbd4c9908357 (diff)
downloadgnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz
gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r--src/peerinfo-tool/gnunet-peerinfo.c6
-rw-r--r--src/peerinfo-tool/plugin_rest_peerinfo.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c
index df6c169b5..739249a93 100644
--- a/src/peerinfo-tool/gnunet-peerinfo.c
+++ b/src/peerinfo-tool/gnunet-peerinfo.c
@@ -249,7 +249,7 @@ dump_pc (struct PrintContext *pc)
249 } 249 }
250 } 250 }
251 printf ("\n"); 251 printf ("\n");
252 GNUNET_free_non_null (pc->address_list); 252 GNUNET_free (pc->address_list);
253 GNUNET_CONTAINER_DLL_remove (pc_head, pc_tail, pc); 253 GNUNET_CONTAINER_DLL_remove (pc_head, pc_tail, pc);
254 GNUNET_free (pc); 254 GNUNET_free (pc);
255 if ((NULL == pc_head) && (NULL == pic)) 255 if ((NULL == pc_head) && (NULL == pic))
@@ -619,14 +619,14 @@ shutdown_task (void *cls)
619 for (i = 0; i < pc->address_list_size; i++) 619 for (i = 0; i < pc->address_list_size; i++)
620 { 620 {
621 ar = &pc->address_list[i]; 621 ar = &pc->address_list[i];
622 GNUNET_free_non_null (ar->result); 622 GNUNET_free (ar->result);
623 if (NULL != ar->atsc) 623 if (NULL != ar->atsc)
624 { 624 {
625 GNUNET_TRANSPORT_address_to_string_cancel (ar->atsc); 625 GNUNET_TRANSPORT_address_to_string_cancel (ar->atsc);
626 ar->atsc = NULL; 626 ar->atsc = NULL;
627 } 627 }
628 } 628 }
629 GNUNET_free_non_null (pc->address_list); 629 GNUNET_free (pc->address_list);
630 GNUNET_free (pc); 630 GNUNET_free (pc);
631 } 631 }
632 GPI_plugins_unload (); 632 GPI_plugins_unload ();
diff --git a/src/peerinfo-tool/plugin_rest_peerinfo.c b/src/peerinfo-tool/plugin_rest_peerinfo.c
index 514b14313..1ab6d6f75 100644
--- a/src/peerinfo-tool/plugin_rest_peerinfo.c
+++ b/src/peerinfo-tool/plugin_rest_peerinfo.c
@@ -359,7 +359,7 @@ peerinfo_list_finished (void *cls)
359 resp = GNUNET_REST_create_response (result_str); 359 resp = GNUNET_REST_create_response (result_str);
360 MHD_add_response_header (resp, "Content-Type", "application/json"); 360 MHD_add_response_header (resp, "Content-Type", "application/json");
361 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); 361 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK);
362 GNUNET_free_non_null (result_str); 362 GNUNET_free (result_str);
363 GNUNET_SCHEDULER_add_now (&cleanup_handle, handle); 363 GNUNET_SCHEDULER_add_now (&cleanup_handle, handle);
364} 364}
365 365
@@ -452,7 +452,7 @@ dump_pc (struct PrintContext *pc)
452 json_decref (temp_array); 452 json_decref (temp_array);
453 json_decref (response_entry); 453 json_decref (response_entry);
454 454
455 GNUNET_free_non_null (pc->address_list); 455 GNUNET_free (pc->address_list);
456 GNUNET_CONTAINER_DLL_remove (pc_head, 456 GNUNET_CONTAINER_DLL_remove (pc_head,
457 pc_tail, 457 pc_tail,
458 pc); 458 pc);
@@ -813,7 +813,7 @@ libgnunet_plugin_rest_peerinfo_done (void *cls)
813 813
814 plugin->cfg = NULL; 814 plugin->cfg = NULL;
815 815
816 GNUNET_free_non_null (allow_methods); 816 GNUNET_free (allow_methods);
817 GNUNET_free (api); 817 GNUNET_free (api);
818 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 818 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
819 "Peerinfo REST plugin is finished\n"); 819 "Peerinfo REST plugin is finished\n");