/******************************************************************** * FUNCTION agt_cap_cleanup * * Clean the NETCONF agent capabilities * * INPUTS: * none * RETURNS: * none *********************************************************************/ void agt_cap_cleanup (void) { if (agt_caps) { val_free_value(agt_caps); agt_caps = NULL; } if (my_agt_caps) { cap_clean_caplist(my_agt_caps); m__free(my_agt_caps); my_agt_caps = NULL; } } /* agt_cap_cleanup */
/******************************************************************** * FUNCTION mgr_cap_cleanup * * Clean the NETCONF manager capabilities * * INPUTS: * none * RETURNS: * none *********************************************************************/ void mgr_cap_cleanup (void) { if (mgr_caps) { val_free_value(mgr_caps); mgr_caps = NULL; } if (my_mgr_caps) { cap_clean_caplist(my_mgr_caps); m__free(my_mgr_caps); my_mgr_caps = NULL; } } /* mgr_cap_cleanup */