aboutsummaryrefslogtreecommitdiff
path: root/src/rest/gnunet-rest-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rest/gnunet-rest-server.c')
-rw-r--r--src/rest/gnunet-rest-server.c8
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)
209static int 209static int
210cleanup_url_map (void *cls, const struct GNUNET_HashCode *key, void *value) 210cleanup_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