Skip to content

Commit

Permalink
Merge pull request #15087 from cscarpitta/fix/fix-cid-1575079
Browse files Browse the repository at this point in the history
zebra: Fix coverity issue in `dplane_srv6_encap_srcaddr_set`
  • Loading branch information
donaldsharp authored Jan 5, 2024
2 parents 96067c7 + a061ba2 commit 75490f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zebra/zebra_dplane.c
Original file line number Diff line number Diff line change
Expand Up @@ -5947,8 +5947,7 @@ dplane_srv6_encap_srcaddr_set(const struct in6_addr *addr, ns_id_t ns_id)
atomic_fetch_add_explicit(&zdplane_info
.dg_srv6_encap_srcaddr_set_errors,
1, memory_order_relaxed);
if (ctx)
dplane_ctx_free(&ctx);
dplane_ctx_free(&ctx);
}
return result;
}
Expand Down

0 comments on commit 75490f2

Please sign in to comment.