From: Mark Stapp Date: Tue, 4 Aug 2020 18:52:43 +0000 (-0400) Subject: zebra: fix SA warning in dataplane X-Git-Tag: base_7.5~119^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F6859%2Fhead;p=mirror%2Ffrr.git zebra: fix SA warning in dataplane A previous SA fix introduced ... a different SA warning; fix it. Signed-off-by: Mark Stapp --- 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; }