]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix aspath memleak on error in vnc_direct_bgp_add_nve 10551/head
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 9 Feb 2022 22:23:41 +0000 (01:23 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 9 Feb 2022 22:23:41 +0000 (01:23 +0300)
commit606c3f9fb2e164ea3f2fe87b46f99c4be44104bc
treefb8438df536c8c5c8aeb9b67316cd5e1307d8ba6
parentafb254d79235e4a4cf41e761d7c99c030069758b
bgpd: fix aspath memleak on error in vnc_direct_bgp_add_nve

bgp_attr_default_set creates a new empty aspath. If family error happens,
this aspath is not freed. Move attr initialization after we checked the
family.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bgpd/rfapi/vnc_export_bgp.c