GNUNET_CONTAINER_multihashmap_remove (h->egos,
&ego->id,
ego));
- GNUNET_CRYPTO_ecc_key_free (ego->pk);
+ GNUNET_free (ego->pk);
GNUNET_free (ego->name);
GNUNET_free (ego);
}
reschedule_connect (h);
return;
}
+ /* Note: we know which service this should be for, so we're not
+ really using 'str' henceforth */
GNUNET_CRYPTO_ecc_key_get_public (&sdm->private_key,
&pub);
GNUNET_CRYPTO_hash (&pub, sizeof (pub), &id);
- if (0 == name_len)
- str = NULL;
- else
- str = (const char *) &sdm[1];
ego = GNUNET_CONTAINER_multihashmap_get (h->egos,
&id);
if (NULL == ego)
GNUNET_CONTAINER_DLL_remove (h->op_head,
h->op_tail,
op);
+ GNUNET_free (ego->name);
if (NULL != op->cb)
op->cb (op->cls,
ego,
if (slen >= GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof (struct GNUNET_IDENTITY_CreateRequestMessage))
{
GNUNET_break (0);
- GNUNET_CRYPTO_ecc_key_free (pk);
+ GNUNET_free (pk);
return NULL;
}
op = GNUNET_malloc (sizeof (struct GNUNET_IDENTITY_Operation) +
op);
if (NULL == id->th)
transmit_next (id);
- GNUNET_CRYPTO_ecc_key_free (pk);
+ GNUNET_free (pk);
return op;
}
ego,
&ego->ctx,
NULL);
- GNUNET_CRYPTO_ecc_key_free (ego->pk);
+ GNUNET_free (ego->pk);
GNUNET_free (ego->name);
GNUNET_free (ego);
return GNUNET_OK;