]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix memory leak of some "show ip bgp neighbor" commands
authorJorge Boncompte [DTI2] <jorge@dti2.net>
Tue, 10 Apr 2012 14:57:24 +0000 (16:57 +0200)
committerDavid Lamparter <equinox@diac24.net>
Wed, 2 May 2012 15:03:27 +0000 (17:03 +0200)
commitc63b83fe8d1addecc949258479b8d54180c4da60
treefbc58da3014db1cf74a2f8a91a33fe941968815d
parentd227617a972bb20a974be68bea5032e692a0970f
bgpd: Fix memory leak of some "show ip bgp neighbor" commands

sockunion_str2su() use is prone to memory leaks. Remove it's use all over
the code.

At least these commands leaked a sockunion union:
    - show ip bgp vpnv4 ... routes
    - show ip bgp ... received prefix-filter

Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Signed-off-by: David Lamparter <equinox@diac24.net>
bgpd/bgp_mplsvpn.c
bgpd/bgp_route.c
bgpd/bgp_routemap.c
bgpd/bgp_vty.c
lib/sockunion.c
lib/sockunion.h