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/rest | |
parent | 1437556645417e6302862845e7ebcbd4c9908357 (diff) | |
download | gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip |
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/rest')
-rw-r--r-- | src/rest/gnunet-rest-server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c index 30eade623..875509536 100644 --- a/src/rest/gnunet-rest-server.c +++ b/src/rest/gnunet-rest-server.c | |||
@@ -209,7 +209,7 @@ plugin_callback (void *cls, struct MHD_Response *resp, int status) | |||
209 | static int | 209 | static int |
210 | cleanup_url_map (void *cls, const struct GNUNET_HashCode *key, void *value) | 210 | cleanup_url_map (void *cls, const struct GNUNET_HashCode *key, void *value) |
211 | { | 211 | { |
212 | GNUNET_free_non_null (value); | 212 | GNUNET_free (value); |
213 | return GNUNET_YES; | 213 | return GNUNET_YES; |
214 | } | 214 | } |
215 | 215 | ||
@@ -728,8 +728,8 @@ do_shutdown (void *cls) | |||
728 | { | 728 | { |
729 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Shutting down...\n"); | 729 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Shutting down...\n"); |
730 | kill_httpd (); | 730 | kill_httpd (); |
731 | GNUNET_free_non_null (allow_credentials); | 731 | GNUNET_free (allow_credentials); |
732 | GNUNET_free_non_null (allow_headers); | 732 | GNUNET_free (allow_headers); |
733 | } | 733 | } |
734 | 734 | ||
735 | 735 | ||
@@ -1055,7 +1055,7 @@ main (int argc, char *const *argv) | |||
1055 | ? 0 | 1055 | ? 0 |
1056 | : 1; | 1056 | : 1; |
1057 | MHD_destroy_response (failure_response); | 1057 | MHD_destroy_response (failure_response); |
1058 | GNUNET_free_non_null ((char *) argv); | 1058 | GNUNET_free_nz ((char *) argv); |
1059 | return ret; | 1059 | return ret; |
1060 | } | 1060 | } |
1061 | 1061 | ||