Merge pull request #6859 from mjstapp/fix_dplane_sa_again

zebra: fix coverity SA warning in dataplane
This commit is contained in:
Donald Sharp 2020-08-06 09:42:33 -04:00 committed by GitHub
commit 3a2bc867f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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