/* Dequeue listnode entry from the list. */
listnode_delete(funclist, functab);
- /* Avoid misjudgement in the next lookup. */
- if (listcount(funclist) == 0)
- funclist->head = funclist->tail = NULL;
-
XFREE(MTYPE_OSPF_OPAQUE_FUNCTAB, functab);
break;
}
/* Dequeue listnode entry from the list. */
listnode_delete(oipt->id_list, oipi);
- /* Avoid misjudgement in the next lookup. */
- if (listcount(oipt->id_list) == 0)
- oipt->id_list->head = oipt->id_list->tail = NULL;
-
/* Disassociate internal control information with the given lsa. */
free_opaque_info_per_id((void *)oipi);
if (found) {
listnode_delete(pce->pce_domain, old);
- /* Avoid misjudgement in the next lookup. */
- if (listcount(pce->pce_domain) == 0)
- pce->pce_domain->head = pce->pce_domain->tail = NULL;
-
/* Finally free the old domain */
XFREE(MTYPE_OSPF_PCE_PARAMS, old);
}
if (found) {
listnode_delete(pce->pce_neighbor, old);
- /* Avoid misjudgement in the next lookup. */
- if (listcount(pce->pce_neighbor) == 0)
- pce->pce_neighbor->head = pce->pce_neighbor->tail =
- NULL;
-
/* Finally free the old domain */
XFREE(MTYPE_OSPF_PCE_PARAMS, old);
}
/* Dequeue listnode entry from the list. */
listnode_delete(iflist, lp);
- /* Avoid misjudgement in the next lookup. */
- if (listcount(iflist) == 0)
- iflist->head = iflist->tail = NULL;
-
XFREE(MTYPE_OSPF_MPLS_TE, lp);
}