From 30361fe0e89a72e2dd248a93824b06d858e4e81a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 21 Apr 2020 00:54:49 +0200 Subject: make GNUNET_freez default, have GNUNET_free_nz for cases where that does not work --- src/peerinfo-tool/gnunet-peerinfo.c | 2 +- src/peerinfo-tool/plugin_rest_peerinfo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/peerinfo-tool') diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index 4d4c4de33..df6c169b5 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c @@ -855,7 +855,7 @@ main (int argc, char *const *argv) NULL)) ? 0 : 1; - GNUNET_free ((void *) argv); + GNUNET_free_nz ((void *) argv); return ret; } diff --git a/src/peerinfo-tool/plugin_rest_peerinfo.c b/src/peerinfo-tool/plugin_rest_peerinfo.c index 14559a8cf..6e156569a 100644 --- a/src/peerinfo-tool/plugin_rest_peerinfo.c +++ b/src/peerinfo-tool/plugin_rest_peerinfo.c @@ -272,7 +272,7 @@ cleanup_handle (void *cls) if (NULL != handle->emsg) GNUNET_free (handle->emsg); if (NULL != handle->address) - GNUNET_free ((char *) handle->address); + GNUNET_free_nz ((char *) handle->address); if (NULL != handle->expiration_str) GNUNET_free (handle->expiration_str); if (NULL != handle->pubkey) -- cgit v1.2.3