summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_gr.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2020-02-20 03:36:54 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2020-02-20 03:38:23 +0100
commit294a0baea49d0bf2848d8aa81072bad985197ef9 (patch)
tree3fbeb3e9d34d85e60fc724d5775c118cf5f26815 /zebra/zebra_gr.c
parentzebra: reduce scope of XCALLOC for gr processing (diff)
downloadfrr-294a0baea49d0bf2848d8aa81072bad985197ef9.tar.xz
frr-294a0baea49d0bf2848d8aa81072bad985197ef9.zip
zebra: remove null check before XFREE in GR code
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_gr.c')
-rw-r--r--zebra/zebra_gr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/zebra/zebra_gr.c b/zebra/zebra_gr.c
index 5b889c3c0..956fe9c2c 100644
--- a/zebra/zebra_gr.c
+++ b/zebra/zebra_gr.c
@@ -468,9 +468,7 @@ static int32_t zebra_gr_route_stale_delete_timer_expiry(struct thread *thread)
LOG_GR("%s: Client %s all starle routes processed", __func__,
zebra_route_string(client->proto));
- if (info->current_prefix != NULL)
- XFREE(MTYPE_TMP, info->current_prefix);
- info->current_prefix = NULL;
+ XFREE(MTYPE_TMP, info->current_prefix);
info->current_afi = 0;
zebra_gr_delete_stale_client(info);
}