From b3ba5dc7fe769f3719b2812e4fdb9f8f8271032d Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 3 Feb 2020 11:22:13 -0500 Subject: *: don't null after XFREE; XFREE does this itself Signed-off-by: Quentin Young --- nhrpd/nhrp_route.c | 1 - nhrpd/nhrp_shortcut.c | 1 - 2 files changed, 2 deletions(-) (limited to 'nhrpd') diff --git a/nhrpd/nhrp_route.c b/nhrpd/nhrp_route.c index cfca86a9b..a23ac3474 100644 --- a/nhrpd/nhrp_route.c +++ b/nhrpd/nhrp_route.c @@ -58,7 +58,6 @@ static void nhrp_route_update_put(struct route_node *rn) if (!ri->ifp && !ri->nhrp_ifp && sockunion_family(&ri->via) == AF_UNSPEC) { XFREE(MTYPE_NHRP_ROUTE, rn->info); - rn->info = NULL; route_unlock_node(rn); } route_unlock_node(rn); diff --git a/nhrpd/nhrp_shortcut.c b/nhrpd/nhrp_shortcut.c index 84053b4b5..b3fdecf0e 100644 --- a/nhrpd/nhrp_shortcut.c +++ b/nhrpd/nhrp_shortcut.c @@ -141,7 +141,6 @@ static void nhrp_shortcut_delete(struct nhrp_shortcut *s) rn = route_node_lookup(shortcut_rib[afi], s->p); if (rn) { XFREE(MTYPE_NHRP_SHORTCUT, rn->info); - rn->info = NULL; route_unlock_node(rn); route_unlock_node(rn); } -- cgit v1.2.3