From: Christian Grothoff Date: Sat, 1 May 2010 12:17:19 +0000 (+0000) Subject: fixing missing free X-Git-Tag: initial-import-from-subversion-38251~21929 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=470536efd23868e96a8bb7446b9a812898f90cec;p=oweals%2Fgnunet.git fixing missing free --- 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; }