Skip to content

Commit

Permalink
Merge pull request #15111 from donaldsharp/json_vpn_wait_what
Browse files Browse the repository at this point in the history
bgpd: show_adj_route_vpn always leaked json memory
  • Loading branch information
ton31337 authored Jan 8, 2024
2 parents 2022141 + bed55ec commit 482f082
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions bgpd/bgp_vpn.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ int show_adj_route_vpn(struct vty *vty, struct peer *peer,
int rd_header;
int header = 1;
json_object *json = NULL;
json_object *json_ocode = NULL;
json_object *json_adv = NULL;
json_object *json_routes = NULL;
char rd_str[BUFSIZ];
Expand All @@ -46,13 +45,8 @@ int show_adj_route_vpn(struct vty *vty, struct peer *peer,
}

if (use_json) {
json_ocode = json_object_new_object();
json = json_object_new_object();
json_adv = json_object_new_object();

json_object_string_add(json_ocode, "igp", "i");
json_object_string_add(json_ocode, "egp", "e");
json_object_string_add(json_ocode, "incomplete", "?");
}

for (dest = bgp_table_top(bgp->rib[afi][safi]); dest;
Expand Down

0 comments on commit 482f082

Please sign in to comment.