fixing missing free
authorChristian Grothoff <christian@grothoff.org>
Sat, 1 May 2010 12:17:19 +0000 (12:17 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 1 May 2010 12:17:19 +0000 (12:17 +0000)
src/hostlist/test_gnunet_daemon_hostlist_learning.c

index e502a71752f3de48a9bc6491eb2529f41c01342d..82e77b15f1abe7b1538c9c5d06101d0a783e0b95 100644 (file)
@@ -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;
 }