mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-12 17:03:11 +00:00
Merge pull request #16574 from donaldsharp/non_json_free_ptr
bgpd: Free up non-freed json memory on function return
This commit is contained in:
commit
b57cb7a8e8
@ -12049,6 +12049,8 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
|
||||
|
||||
if (show_failed && !failed_count) {
|
||||
if (use_json) {
|
||||
json_object_free(json_peers);
|
||||
|
||||
json_object_int_add(json, "failedPeersCount", 0);
|
||||
json_object_int_add(json, "dynamicPeers", dn_count);
|
||||
json_object_int_add(json, "totalPeers", count);
|
||||
|
Loading…
Reference in New Issue
Block a user