summaryrefslogtreecommitdiff
path: root/proto/bgp/bgp.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-02-08 14:34:48 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-02-08 14:34:48 +0100
commitc259669fa33ca13b5c6ae60eb8ffa0874ddc01b2 (patch)
tree09003c2fa4d614b1e4f1fb10d16fba21acb56b4d /proto/bgp/bgp.c
parent82f42ea09176afdb67ab119258d714e8c8e54d12 (diff)
parentda65a3d898fde0ce567782d86919a66e29916ed7 (diff)
Merge branch 'master' into int-new
Diffstat (limited to 'proto/bgp/bgp.c')
-rw-r--r--proto/bgp/bgp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c
index 61d24f42..5e95e6b4 100644
--- a/proto/bgp/bgp.c
+++ b/proto/bgp/bgp.c
@@ -559,6 +559,10 @@ bgp_conn_leave_established_state(struct bgp_proto *p)
BGP_TRACE(D_EVENTS, "BGP session closed");
p->conn = NULL;
+ // XXXX free these tables to avoid memory leak during graceful restart
+ // bgp_free_prefix_table(p);
+ // bgp_free_bucket_table(p);
+
if (p->p.proto_state == PS_UP)
bgp_stop(p, 0);
}