From 841f77ff043f31889b32de7373c1710b17290181 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Thu, 3 Sep 2020 13:44:14 -0400 Subject: [PATCH] zebra: free ctx if we skip replace for NHG PROTO routes Free the ctx if we decide we dont need to do anything with this route update. Signed-off-by: Stephen Worley --- zebra/zebra_dplane.c | 1 + 1 file changed, 1 insertion(+) diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index d888ceff2c..76d7d00e4a 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -2388,6 +2388,7 @@ dplane_route_update_internal(struct route_node *rn, NEXTHOP_FLAG_FIB); } + dplane_ctx_free(&ctx); return ZEBRA_DPLANE_REQUEST_SUCCESS; }