Returns now GNUNET_SYSERR
[oweals/gnunet.git] / src / util / program.c
index 88b67a21eb81b563d085003de79b47684d44f312..6f8467837d3a0e5ecaa7fb720b6aa31ca471bc75 100644 (file)
@@ -77,7 +77,7 @@ program_main (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   struct CommandContext *cc = cls;
 
-  cc->task (cc->task_cls, tc->sched, cc->args, cc->cfgfile, cc->cfg);
+  cc->task (cc->task_cls, cc->args, cc->cfgfile, cc->cfg);
 }
 
 
@@ -214,6 +214,7 @@ GNUNET_PROGRAM_run (int argc,
        (GNUNET_OK != GNUNET_CONFIGURATION_load (cfg, cc.cfgfile))))
 
     {
+      GNUNET_CONFIGURATION_destroy (cfg);
       GNUNET_free_non_null (cc.cfgfile);
       GNUNET_free (loglev);
       GNUNET_free (allopts);