(no commit message)
[oweals/gnunet.git] / src / hostlist / gnunet-daemon-hostlist.c
index cf0f646ed37fb840a3a435520cae16eb16c06abb..bbc0d7e088ec2d8925aa7bf811dea6488c92cf10 100644 (file)
@@ -74,11 +74,6 @@ static int bootstrapping;
  */
 static int learning;
 
-/**
- * Our configuration.
- */
-static const struct GNUNET_CONFIGURATION_Handle *cfg;
-
 /**
  * Statistics handle.
  */
@@ -256,11 +251,6 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
                                 GNUNET_NO);
       stats = NULL;
     }
-  if (cfg != NULL)
-    {
-      GNUNET_CONFIGURATION_destroy(cfg);
-      cfg = NULL;
-    }
 }
 
 /**
@@ -336,6 +326,7 @@ run (void *cls,
   GNUNET_SCHEDULER_add_delayed (sched,
                                 GNUNET_TIME_UNIT_FOREVER_REL,
                                 &cleaning_task, NULL);
+
   if (NULL == core)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,