summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 1c7727dd0b..dfa812357f 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -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");
}