]> git.ipfire.org Git - thirdparty/bird.git/commit
BGP: Fix memory leak in graceful restart code
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Fri, 25 Nov 2016 10:51:38 +0000 (11:51 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Fri, 25 Nov 2016 10:51:38 +0000 (11:51 +0100)
commited1a908e535e4333b358d83b472453a2ad6d3f51
tree3ee46e6d922c3e363dad23976fcc2de0a7e19429
parent261816b0d4f3d4549a4402b95541b82fc7f10a4b
BGP: Fix memory leak in graceful restart code

Prefix and bucket tables are initialized when entering established state
but not explicitly freed when leaving it (that is handled by protocol
restart). With graceful restart, BGP may enter and leave established
state multiple times without hard protocol restart causing memory leak.
lib/hash.h
proto/bgp/attrs.c
proto/bgp/bgp.c
proto/bgp/bgp.h