summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2020-03-09 23:16:32 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2020-03-09 23:16:32 +0100
commit5567e8010d8e7598882041c753a08c5f433310fb (patch)
tree0add5d3a0017214dbe428b8fbd19db5e45a03dc1 /lib
parentMerge pull request #5839 from donaldsharp/upstream_merge (diff)
downloadfrr-5567e8010d8e7598882041c753a08c5f433310fb.tar.xz
frr-5567e8010d8e7598882041c753a08c5f433310fb.zip
lib, zebra: remove nullity check before XFREE...
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/routemap_northbound.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/routemap_northbound.c b/lib/routemap_northbound.c
index 2d04a3d65..69cebbd2a 100644
--- a/lib/routemap_northbound.c
+++ b/lib/routemap_northbound.c
@@ -221,8 +221,7 @@ static int lib_route_map_entry_description_modify(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);
+ XFREE(MTYPE_TMP, rmi->description);
rmi->description = resource->ptr;
break;
}