summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-08-26 09:27:12 -0400
committerGitHub <noreply@github.com>2020-08-26 09:27:12 -0400
commitff35a1167604193afa9a94b37102e47d25cd3a5c (patch)
treebec6101e369c84b0c81da2d836cf33a551a2b041
parent0856cc337f035fb626325df7e66b5f519cc35a2a (diff)
parent3e78a6ce5b55302b07652eb15572d80a2799e026 (diff)
Merge pull request #7001 from ton31337/fix/deadcode_bgp_show_all_instances_neighbors_vty
bgpd: Remove a deadcode freeing JSON in bgp_show_all_instances_neighbors_vty
-rw-r--r--bgpd/bgp_vty.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 817e2e6c68..e94a31b685 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -12814,11 +12814,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");
}