aboutsummaryrefslogtreecommitdiff
path: root/src/util/client.c
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/util/client.c
parent1437556645417e6302862845e7ebcbd4c9908357 (diff)
downloadgnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz
gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/util/client.c')
-rw-r--r--src/util/client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/client.c b/src/util/client.c
index a7b1a2a0f..86dabe664 100644
--- a/src/util/client.c
+++ b/src/util/client.c
@@ -422,7 +422,7 @@ connection_client_destroy_impl (struct GNUNET_MQ_Handle *mq,
422 } 422 }
423 cancel_aps (cstate); 423 cancel_aps (cstate);
424 GNUNET_free (cstate->service_name); 424 GNUNET_free (cstate->service_name);
425 GNUNET_free_non_null (cstate->hostname); 425 GNUNET_free (cstate->hostname);
426 GNUNET_MST_destroy (cstate->mst); 426 GNUNET_MST_destroy (cstate->mst);
427 GNUNET_free (cstate); 427 GNUNET_free (cstate);
428} 428}
@@ -563,7 +563,7 @@ try_unixpath (const char *service_name,
563 if (NULL != sock) 563 if (NULL != sock)
564 GNUNET_NETWORK_socket_close (sock); 564 GNUNET_NETWORK_socket_close (sock);
565 } 565 }
566 GNUNET_free_non_null (unixpath); 566 GNUNET_free (unixpath);
567#endif 567#endif
568 return NULL; 568 return NULL;
569} 569}
@@ -747,7 +747,7 @@ test_service_configuration (const char *service_name,
747 _ ("not a valid filename")); 747 _ ("not a valid filename"));
748 return GNUNET_SYSERR; /* UNIXPATH specified but invalid! */ 748 return GNUNET_SYSERR; /* UNIXPATH specified but invalid! */
749 } 749 }
750 GNUNET_free_non_null (unixpath); 750 GNUNET_free (unixpath);
751#endif 751#endif
752 752
753 if ((GNUNET_YES == 753 if ((GNUNET_YES ==
@@ -768,7 +768,7 @@ test_service_configuration (const char *service_name,
768 &hostname)) && 768 &hostname)) &&
769 (0 != strlen (hostname))) 769 (0 != strlen (hostname)))
770 ret = GNUNET_OK; 770 ret = GNUNET_OK;
771 GNUNET_free_non_null (hostname); 771 GNUNET_free (hostname);
772 return ret; 772 return ret;
773} 773}
774 774
@@ -1043,7 +1043,7 @@ GNUNET_CLIENT_test (const struct GNUNET_CONFIGURATION_Handle *cfg,
1043 /* service running remotely */ 1043 /* service running remotely */
1044 ret = GNUNET_OK; 1044 ret = GNUNET_OK;
1045 } 1045 }
1046 GNUNET_free_non_null (hostname); 1046 GNUNET_free (hostname);
1047 return ret; 1047 return ret;
1048} 1048}
1049 1049