diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-22 12:26:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-22 12:26:28 -0400 |
| commit | ff7f6cd82999cd674a98232c7073937da84bd27c (patch) | |
| tree | 66b28f67615beaba9fa9814ec006925258a17a45 | |
| parent | 61929aa5f9dbf228bf9e3195bfc23845f831fe8f (diff) | |
| parent | b2a9fc6b2362fba18324f9e2ce2c9b04bae262b1 (diff) | |
Merge pull request #2890 from patrasar/Fix_2847
bgpd: Fix memory leak show ip bgp json
| -rw-r--r-- | bgpd/bgp_route.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 343f094b20..e38257d564 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -8202,7 +8202,6 @@ static int bgp_show_table(struct vty *vty, struct bgp *bgp, safi_t safi, vty_out(vty, " \"routeDistinguishers\" : {"); ++*json_header_depth; } - json_paths = json_object_new_object(); } if (use_json && rd) { @@ -8429,8 +8428,6 @@ static int bgp_show_table(struct vty *vty, struct bgp *bgp, safi_t safi, *total_cum = total_count; } if (use_json) { - if (json_paths) - json_object_free(json_paths); if (rd) { vty_out(vty, " }%s ", (is_last ? "" : ",")); } |
