mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-04 22:22:12 +00:00
Merge pull request #5842 from qlyoung/fix-test-then-xfree-again
lib: do not test before XFREE
This commit is contained in:
commit
f294fac22d
@ -243,9 +243,7 @@ static int lib_route_map_entry_description_destroy(enum nb_event event,
|
||||
break;
|
||||
case NB_EV_APPLY:
|
||||
rmi = nb_running_get_entry(dnode, NULL, true);
|
||||
if (rmi->description != NULL)
|
||||
XFREE(MTYPE_TMP, rmi->description);
|
||||
rmi->description = NULL;
|
||||
XFREE(MTYPE_TMP, rmi->description);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user