From 470536efd23868e96a8bb7446b9a812898f90cec Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 1 May 2010 12:17:19 +0000 Subject: [PATCH] fixing missing free --- src/hostlist/test_gnunet_daemon_hostlist_learning.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c index e502a7175..82e77b15f 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c +++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c @@ -324,8 +324,8 @@ static int ad_arrive_handler (void *cls, else GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Expected URI `%s' and recieved URI `%s' differ\n", expected_uri, current_adv_uri); - if ( NULL != expected_uri ) GNUNET_free ( expected_uri ); - if ( NULL != expected_uri ) GNUNET_free ( hostname ); + GNUNET_free_non_null (expected_uri); + GNUNET_free_non_null (hostname); return GNUNET_OK; } -- 2.25.1