]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_aspath.c
bgpd, lib: memory cleanups for valgrind, plus debug changes
authorLou Berger <lberger@labn.net>
Wed, 10 Apr 2013 19:30:04 +0000 (12:30 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 18 Oct 2016 14:34:41 +0000 (10:34 -0400)
commit289d25016b79ed7908a29af7ba35e18f1ec6ed0a
tree791be6999b7d0f05b94ae7c11be82296622ad24d
parent43e7c3b42165321d7407c0454ef757023ce30179
bgpd, lib: memory cleanups for valgrind, plus debug changes

Description:
    We use valgrind memcheck quite a bit to spot leaks in
    our work with bgpd. In order to eliminate false positives,
    we added code in the exit path to release the remaining
    allocated memory.

    Bgpd startup log message now includes pid.

Some little tweaks by Paul Jakma <paul.jakma@hpe.com>:

* bgp_mplsvpn.c: (str2prefix_rd) do the cleanup in common code at the end
  and goto it.

[DL: dropped several chunks from original commit which are obsolete by
now on this tree.]
bgpd/bgp_aspath.c
bgpd/bgp_attr.c
bgpd/bgp_mplsvpn.c
bgpd/bgp_network.c
lib/routemap.c