void link_destroy(struct rtnl_link *link) { if (link) nl_object_free(OBJ_CAST(link)); }
void nl_object_put(struct nl_object *obj) { obj->ce_refcnt--; if (!obj->ce_refcnt) nl_object_free(obj); }
/** * Free an address object * @arg addr Address object to be freed. * * @note Always use rtnl_addr_put() unless you're absolutely sure * that no other user may have a reference on this object. */ void rtnl_addr_free(struct rtnl_addr *addr) { nl_object_free((struct nl_object *) addr); }