示例#1
0
void
evproposer_free(struct evproposer* p)
{
	peers_free(p->acceptors);
	tcp_receiver_free(p->receiver);
	proposer_free(p->state);
	free(p);
}
示例#2
0
/*释放evproposer对象*/
void proposer_free(struct evproposer* p)
{
	if(p != NULL){
		if(p->state != NULL)
			proposer_free(p->state);

		if(p->acceptors != NULL)
			peers_free(p->acceptors);

		if(p->receiver != NULL)
			tcp_receiver_free(p->receiver);

		free(p);
	}
}