mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 08:32:12 +00:00
Merge pull request #14798 from Keelan10/zebra-fix-json-leak
zebra: Refactor memory allocation in zebra_rnh.c
This commit is contained in:
commit
43290b565b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user