示例#1
0
文件: udp.c 项目: MrJoe/gtk-gnutella
static inline void
udp_ping_free(struct udp_ping *ping)
{
	WFREE_TYPE_NULL(ping->callback);
	atom_host_free_null(&ping->host);
	WFREE(ping);
}
示例#2
0
/**
 * Release user data from TX descriptor, then return it to the pool.
 */
static void
udp_tx_desc_release(struct udp_tx_desc *txd, udp_sched_t *us)
{
	udp_tx_desc_check(txd);
	udp_sched_check(us);

	pmsg_free_null(&txd->mb);
	atom_host_free_null(&txd->to);
	pfree(us->txpool, txd);
}