From dd3b6cb57ba3fd00d45b4ae97b8598c5445377c4 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Tue, 4 Aug 2020 14:52:43 -0400 Subject: [PATCH] zebra: fix SA warning in dataplane A previous SA fix introduced ... a different SA warning; fix it. Signed-off-by: Mark Stapp --- zebra/zebra_dplane.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 53956e3aec..e91b1fb822 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -2542,8 +2542,8 @@ dplane_route_notif_update(struct route_node *rn, done: if (ret == AOK) result = ZEBRA_DPLANE_REQUEST_QUEUED; - else if (ctx) - dplane_ctx_free(&ctx); + else if (new_ctx) + dplane_ctx_free(&new_ctx); return result; } -- 2.39.5