void evproposer_free(struct evproposer* p) { peers_free(p->acceptors); tcp_receiver_free(p->receiver); proposer_free(p->state); free(p); }
/*释放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); } }