]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix some bgp_update_main() attribute leaks
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 3 Jun 2014 22:54:58 +0000 (00:54 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sun, 29 Jun 2014 10:47:21 +0000 (12:47 +0200)
commitc460e5720c1101a6da53e5b753b736ac2c7981af
treea60baf501e16e92a472e50bc2383bfd937ba0bfd
parenta4b5665f76d9e907a547c85c9c4a7a656c568b9d
bgpd: fix some bgp_update_main() attribute leaks

bgp_update_main() wasn't doing anything to release attribute values
set from route maps for two of its error paths.  To fix, pull up the
appropriate cleanup from further down and apply it here.

bgp_update_rsclient() doesn't have the issue since it immediately
does bgp_attr_intern() on the results from bgp_{export,import}_modifier.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_route.c