mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 05:00:23 +00:00
lib: do not test before XFREE
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
67c5e28cb9
commit
ff51421e80
@ -243,9 +243,7 @@ static int lib_route_map_entry_description_destroy(enum nb_event event,
|
|||||||
break;
|
break;
|
||||||
case NB_EV_APPLY:
|
case NB_EV_APPLY:
|
||||||
rmi = nb_running_get_entry(dnode, NULL, true);
|
rmi = nb_running_get_entry(dnode, NULL, true);
|
||||||
if (rmi->description != NULL)
|
|
||||||
XFREE(MTYPE_TMP, rmi->description);
|
XFREE(MTYPE_TMP, rmi->description);
|
||||||
rmi->description = NULL;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user