void rapi_context_free(RapiContext* context)/*{{{*/ { if (context) { if (context == rapi_context_current()) rapi_context_set(NULL); rapi_buffer_free(context->send_buffer); rapi_buffer_free(context->recv_buffer); synce_socket_free(context->socket); free(context); } }/*}}}*/
static void rapi_context_free(RapiContext* context)/*{{{*/ { if (!context) return; /* check it against the current context, * this should never happen */ RapiContext* check_context = get_current_context(); if (check_context == context) set_current_context(NULL); rapi_buffer_free(context->send_buffer); rapi_buffer_free(context->recv_buffer); synce_socket_free(context->socket); if (context->own_info && context->info) synce_info_destroy(context->info); free(context); }/*}}}*/