Skip to content

Commit

Permalink
Merge pull request FRRouting#14798 from Keelan10/zebra-fix-json-leak
Browse files Browse the repository at this point in the history
zebra: Refactor memory allocation in zebra_rnh.c
  • Loading branch information
ton31337 authored Nov 15, 2023
2 parents 3a109ef + 531866c commit 43290b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra/zebra_rnh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1434,8 +1434,8 @@ void show_nexthop_json_helper(json_object *json_nexthop,
->seg[0]);
json_object_object_add(json_nexthop, "seg6", json_seg6);
} else {
json_segs = json_object_new_array();
if (nexthop->nh_srv6->seg6_segs) {
json_segs = json_object_new_array();
for (int seg_idx = 0;
seg_idx <
nexthop->nh_srv6->seg6_segs->num_segs;
Expand Down

0 comments on commit 43290b5

Please sign in to comment.