diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-10 12:18:29 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-14 00:44:15 +0900 |
commit | 7d68855c86daa8fa8202f5cbdf585d9d8c1d3d21 (patch) | |
tree | 0bcc5384b45f7d5461c5a759413accda1b29b9de /table/table_manager_test.go | |
parent | ce5917c0a8d6206fd1d70a5a476eb99e510fc9f6 (diff) |
table: remove Destination's WithdrawnList and UpdatedPathList used for validation
Withdrawn pathes are kept to be referenced thus the memory for them
are not freed. Nobody uses this so let's remove it.
Paths in UpdatedPathList are also in KnownPathList so doesn't lead to
memory leak. But remove it for simplicity.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/table_manager_test.go')
-rw-r--r-- | table/table_manager_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/table/table_manager_test.go b/table/table_manager_test.go index 02d96299..becf69a1 100644 --- a/table/table_manager_test.go +++ b/table/table_manager_test.go @@ -30,7 +30,7 @@ import ( // this function processes only BGPUpdate func (manager *TableManager) ProcessUpdate(fromPeer *PeerInfo, message *bgp.BGPMessage) ([]*Path, error) { paths := ProcessMessage(message, fromPeer, time.Now()) - dsts := manager.ProcessPaths(paths) + dsts, _, _ := manager.ProcessPaths(paths) paths2 := make([]*Path, 0, len(paths)) for _, dst := range dsts { p := dst.NewFeed(GLOBAL_RIB_NAME) |