/**
* The configuration that we are using.
*/
- const struct GNUNET_CONFIGURATION_Handle *cfg;
+ struct GNUNET_CONFIGURATION_Handle *cfg;
/**
* Scheduler to use.
if (client == NULL)
return NULL;
ret = GNUNET_malloc (sizeof (struct GNUNET_ARM_Handle));
- ret->cfg = cfg;
+ ret->cfg = GNUNET_CONFIGURATION_dup (cfg);
ret->sched = sched;
ret->client = client;
return ret;
{
if (h->client != NULL)
GNUNET_CLIENT_disconnect (h->client);
+ GNUNET_CONFIGURATION_destroy (h->cfg);
GNUNET_free (h);
}