/* * Free a Telnet Control Block. */ static void telnet_free(telnet_t *tp) { nq_free(tp->t_rawq); nq_free(tp->t_canq); if (tp->t_optq != NULL) nq_free(tp->t_optq); nq_free(tp->t_outq); free(tp); }
/* * Free a Telnet Control Block. */ static void telnet_free(telnet_t *tp) { nq_free(tp->t_rawq); nq_free(tp->t_canq); if (tp->t_optq != NULL) nq_free(tp->t_optq); nq_free(tp->t_outq); if (tp->task) remove_task(tp->task); tp->task = NULL; free(tp); }
/* * Close the UDP Manager session and free the associated resources. */ static void udpsvc_shutdown(ndesc_t *nd, udpsvc_t *svc) { (void)close(nd_fd(nd)); nq_free(svc->nq); nd_detach(nd); free(svc); }
/* * Close the UDP Manager session and free the associated resources. */ static void udpsvc_shutdown(ndesc_t *nd, nqueue_t *nq) { (void)close(nd_fd(nd)); nq_free(nq); nd_detach(nd); udpsvc_nd = NULL; }