From 365eaaa2477eea227fde8503d6af56b3e12a84a1 Mon Sep 17 00:00:00 2001 From: Jeff Burdges Date: Wed, 3 Aug 2016 19:22:01 +0000 Subject: [PATCH] Not reason, but the macro exists so I'll use it I guess. --- src/util/socks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/socks.c b/src/util/socks.c index 4a790ac94..30a430fbe 100644 --- a/src/util/socks.c +++ b/src/util/socks.c @@ -602,7 +602,7 @@ GNUNET_SOCKS_do_connect (const char *service_name, GNUNET_CONFIGURATION_get_value_string (cfg, service_name, "SOCKSHOST", &host0)) host0 = NULL; socks5 = GNUNET_CONNECTION_create_from_connect (cfg, (host0 != NULL)? host0:"127.0.0.1", port0); - if (host0) GNUNET_free (host0); + GNUNET_free_non_null (host0); /* Sets to NULL if they do not exist */ (void)GNUNET_CONFIGURATION_get_value_string (cfg, service_name, "SOCKSUSER", &user); -- 2.25.1