]> git.puffer.fish Git - matthieu/frr.git/commit
[bgpd] fix some leaks introduced in aspath rewrite.
authorpaul <paul>
Mon, 16 Jan 2006 11:13:27 +0000 (11:13 +0000)
committerpaul <paul>
Mon, 16 Jan 2006 11:13:27 +0000 (11:13 +0000)
commit02335429e8cf2afc191fd518a3b55564bf6e5b2c
treeaea6397f2ff082bded4380aa1db27245ff21994c
parentc1b9800a60f073c7d57f6232f9af7ae39bc3353a
[bgpd] fix some leaks introduced in aspath rewrite.

2006-01-16 Paul Jakma <paul.jakma@sun.com>

* bgp_aspath.c: (assegment_append_asns) XREALLOC can return
  NULL theoretically, take care not to lose the allocated data.
  (aspath_hash_alloc) aspath_dup already set the aspath
  string - fix leak.
  (aspath_parse) aspath_hash_alloc dupes the entire aspath,
  including segments, but we forgot to free the temporary
  assegment.
bgpd/ChangeLog
bgpd/bgp_aspath.c