Skip to content

Commit

Permalink
Merge pull request #1 from donaldsharp/stable_patches
Browse files Browse the repository at this point in the history
A small collection of patches that fix issues found by valgrind
  • Loading branch information
eqvinox authored Dec 16, 2016
2 parents 5c3cc3a + c9d5bd2 commit d5444d2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bgpd/bgp_updgrp_adv.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,9 @@ subgroup_clear_table (struct update_subgroup *subgrp)

SUBGRP_FOREACH_ADJ_SAFE (subgrp, aout, taout)
{
bgp_adj_out_remove_subgroup (aout->rn, aout, subgrp);
bgp_unlock_node (aout->rn);
struct bgp_node *rn = aout->rn;
bgp_adj_out_remove_subgroup (rn, aout, subgrp);
bgp_unlock_node (rn);
}
}

Expand Down
4 changes: 4 additions & 0 deletions bgpd/bgp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -10317,6 +10317,10 @@ bgp_show_summary (struct vty *vty, struct bgp *bgp, int afi, int safi,

if (peer->afc[afi][safi])
{
memset(dn_flag, '\0', sizeof(dn_flag));
if (peer_dynamic_neighbor(peer))
dn_flag[0] = '*';

if (peer->hostname && bgp_flag_check(bgp, BGP_FLAG_SHOW_HOSTNAME))
sprintf(neighbor_buf, "%s%s(%s) ", dn_flag, peer->hostname, peer->host);
else
Expand Down
6 changes: 5 additions & 1 deletion lib/routemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1845,9 +1845,13 @@ route_map_finish (void)
}

for (i = 1; i < ROUTE_MAP_DEP_MAX; i++)
hash_free(route_map_dep_hash[i]);
{
hash_free(route_map_dep_hash[i]);
route_map_dep_hash[i] = NULL;
}

hash_free (route_map_master_hash);
route_map_master_hash = NULL;
}

/* Initialization of route map vector. */
Expand Down

0 comments on commit d5444d2

Please sign in to comment.