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 <sworley@cumulusnetworks.com>
This commit is contained in:
Stephen Worley 2020-09-03 13:44:14 -04:00
parent 3d3a9dc8a7
commit 841f77ff04

View File

@ -2388,6 +2388,7 @@ dplane_route_update_internal(struct route_node *rn,
NEXTHOP_FLAG_FIB);
}
dplane_ctx_free(&ctx);
return ZEBRA_DPLANE_REQUEST_SUCCESS;
}