]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: remove null check before XFREE in GR code
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 20 Feb 2020 02:36:54 +0000 (21:36 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 20 Feb 2020 02:38:23 +0000 (21:38 -0500)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
zebra/zebra_gr.c

index 5b889c3c093328d182d66b429a26e266b31874fd..956fe9c2c89d966a6d917b153c21ff51a9e85598 100644 (file)
@@ -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);
        }