mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 18:42:23 +00:00
bgpd: Remove a deadcode freeing JSON in bgp_show_all_instances_neighbors_vty
json = NULL; is set in a loop above and here we are trying to check and free the object again which is never be reached. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
92b79e9655
commit
3e78a6ce5b
@ -12800,11 +12800,8 @@ static void bgp_show_all_instances_neighbors_vty(struct vty *vty,
|
||||
json = NULL;
|
||||
}
|
||||
|
||||
if (use_json) {
|
||||
if (use_json)
|
||||
vty_out(vty, "}\n");
|
||||
if (json)
|
||||
json_object_free(json);
|
||||
}
|
||||
else if (!nbr_output)
|
||||
vty_out(vty, "%% BGP instance not found\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user