From 02335429e8cf2afc191fd518a3b55564bf6e5b2c Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 16 Jan 2006 11:13:27 +0000 Subject: [bgpd] fix some leaks introduced in aspath rewrite. 2006-01-16 Paul Jakma * 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bgpd/ChangeLog') diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog index da7ddc44..ece8c4bd 100644 --- a/bgpd/ChangeLog +++ b/bgpd/ChangeLog @@ -1,3 +1,13 @@ +2006-01-16 Paul Jakma + + * 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. + 2006-01-10 Juris Kalnins * bgpd.h: (bgp_router_id_unset) ex-function, remove. -- cgit v1.2.1