summaryrefslogtreecommitdiff
path: root/zebra/zebra_gr.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2020-03-09 18:16:32 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2020-03-09 18:16:32 -0400
commit5567e8010d8e7598882041c753a08c5f433310fb (patch)
tree0add5d3a0017214dbe428b8fbd19db5e45a03dc1 /zebra/zebra_gr.c
parent7f6c322d50e8d7c56ee0bc88ab23c901a1f7495e (diff)
lib, zebra: remove nullity check before XFREE...
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_gr.c')
-rw-r--r--zebra/zebra_gr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/zebra_gr.c b/zebra/zebra_gr.c
index bda1ad6b35..19a280c0ca 100644
--- a/zebra/zebra_gr.c
+++ b/zebra/zebra_gr.c
@@ -127,8 +127,7 @@ static void zebra_gr_client_info_delte(struct zserv *client,
THREAD_OFF(info->t_stale_removal);
- if (info->current_prefix)
- XFREE(MTYPE_TMP, info->current_prefix);
+ XFREE(MTYPE_TMP, info->current_prefix);
LOG_GR("%s: Instance info is being deleted for client %s", __func__,
zebra_route_string(client->proto));