static void tcp_client_free(tcp_client* c) { transaction_destroy(c->t); bufferevent_free(c->buffer_ev); evtimer_del(&c->timeout_ev); free(c); }
void transaction_remove(fetion_account *account, fetion_transaction *trans) { account->trans_list = g_slist_remove(account->trans_list, trans); transaction_destroy(trans); }