zebra: fix SA warning in dataplane

A previous SA fix introduced ... a different SA warning; fix it.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
Mark Stapp 2020-08-04 14:52:43 -04:00
parent aaf0d79655
commit dd3b6cb57b

View File

@ -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;
}