static int vsock_shutdown(listener_context_t c) { vsock_info *info = (vsock_info *)c; VALIDATE(info); info->magic = 0; history_wipe(info->history); free(info->history); free(info->args.key_file); close(info->listen_sock); free(info); return 0; }
static int mcast_shutdown(listener_context_t c) { mcast_info *info = (mcast_info *)c; VALIDATE(info); info->magic = 0; history_wipe(info->history); free(info->history); free(info->args.key_file); free(info->args.addr); close(info->mc_sock); free(info); return 0; }