]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Fix memory leak of ecommunity_ecom2str
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 16 May 2018 13:54:03 +0000 (09:54 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 16 May 2018 13:59:06 +0000 (09:59 -0400)
commitc7ee6c35cb2c7149f6a3ab53cea4d7e212ebe0f6
treef2ebef36552e7cf9a95b281c21bbacc37c7d5a15
parent4b85140f5a6eb5b5c2f425940b585a8ace1253e0
bgpd: Fix memory leak of ecommunity_ecom2str

The creation of a temporary string for the ecommunity
was being leaked when debugging is enabled.  Write
a bit of code to prevent this.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_ecommunity.c
bgpd/bgp_ecommunity.h
bgpd/bgp_flowspec.c