if (c == chn)
{
GNUNET_CONTAINER_multihashmap_remove (grp_replay_req, &key, chn);
+ GNUNET_CONTAINER_multihashmap_iterator_destroy (it);
return GNUNET_YES;
}
}
if (c == client)
{
GNUNET_CONTAINER_multihashmap_remove (replay_req_client, &key, client);
+ GNUNET_CONTAINER_multihashmap_iterator_destroy (it);
return GNUNET_YES;
}
}
GNUNET_TIME_UNIT_FOREVER_REL,
ntohs (msg->size),
&cadet_notify_transmit_ready,
- (void *) msg);
+ tcls);
GNUNET_assert (NULL != chn->tmit_handle);
}
group_send_connect_msg (struct GNUNET_MULTICAST_Group *grp)
{
uint16_t cmsg_size = ntohs (grp->connect_msg->size);
- struct GNUNET_MessageHeader * cmsg = GNUNET_malloc (cmsg_size);
+ struct GNUNET_MessageHeader *cmsg = GNUNET_malloc (cmsg_size);
memcpy (cmsg, grp->connect_msg, cmsg_size);
GNUNET_CLIENT_MANAGER_transmit_now (grp->client, cmsg);
+ GNUNET_free (cmsg);
}
case GNUNET_SYSERR:
GNUNET_MULTICAST_replay_response (rh, NULL,
GNUNET_MULTICAST_REC_INTERNAL_ERROR);
- break;
+ return;
}
GNUNET_MULTICAST_replay_response_end (rh);
}
send_message_ack (chn, tmit_msg->client);
GNUNET_CONTAINER_DLL_remove (chn->tmit_head, chn->tmit_tail, tmit_msg);
- GNUNET_free (tmit_msg);
if (NULL != chn->tmit_head)
{
&& tmit_msg->last_ptype < GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_END)
{
/* FIXME: handle partial message (when still in_transmit) */
+ GNUNET_free (tmit_msg);
return GNUNET_SYSERR;
}
+ GNUNET_free (tmit_msg);
return ret;
}
/** @todo FIXME: send only to requesting client */
client_send_msg (chn, &res->header);
+
+ GNUNET_free (res);
return GNUNET_YES;
}
GNUNET_SERVER_notification_context_add (nc, op->client);
GNUNET_SERVER_notification_context_unicast (nc, op->client, &res->header,
GNUNET_NO);
+ GNUNET_free (res);
return GNUNET_YES;
}
channel_send_connect_msg (struct GNUNET_PSYC_Channel *chn)
{
uint16_t cmsg_size = ntohs (chn->connect_msg->size);
- struct GNUNET_MessageHeader * cmsg = GNUNET_malloc (cmsg_size);
+ struct GNUNET_MessageHeader *cmsg = GNUNET_malloc (cmsg_size);
memcpy (cmsg, chn->connect_msg, cmsg_size);
GNUNET_CLIENT_MANAGER_transmit_now (chn->client, cmsg);
+ GNUNET_free (cmsg);
}
memcpy (&dcsn[1], join_resp, join_resp_size);
GNUNET_CLIENT_MANAGER_transmit (chn->client, &dcsn->header);
+ GNUNET_free (dcsn);
GNUNET_free (jh);
return GNUNET_OK;
}
result_cb, cls));
GNUNET_CLIENT_MANAGER_transmit (chn->client, &req->header);
+ GNUNET_free (req);
}
result_cb, cls));
GNUNET_CLIENT_MANAGER_transmit (chn->client, &req->header);
+ GNUNET_free (req);
}
memcpy (&req[1], method_prefix, method_size);
GNUNET_CLIENT_MANAGER_transmit (chn->client, &req->header);
+ GNUNET_free (req);
return hist;
}
memcpy (&req[1], name, name_size);
GNUNET_CLIENT_MANAGER_transmit (chn->client, &req->header);
+ GNUNET_free (req);
return sr;
}
slicer->mod_value_remaining = slicer->mod_full_value_size;
slicer->mod_value_size
= ntohs (mod->header.size) - sizeof (*mod) - slicer->mod_name_size;
+ // fall through
}
case GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MOD_CONT:
if (ptype == GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MOD_CONT)