Skip to content

Commit

Permalink
Merge pull request #5448 from donaldsharp/7.1_bgp_show_json_mem_leak
Browse files Browse the repository at this point in the history
[7.1]bgpd: Fix memory leak in json output of show commands
  • Loading branch information
ton31337 authored Dec 2, 2019
2 parents 8e16e0a + 9ac50be commit 0cdd806
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -9073,7 +9073,8 @@ static int bgp_show_table(struct vty *vty, struct bgp *bgp, safi_t safi,
json_object_free(json_paths);
json_paths = NULL;
first = 0;
}
} else
json_object_free(json_paths);
}

if (output_cum) {
Expand Down

0 comments on commit 0cdd806

Please sign in to comment.