commit | 79969960aae4adbae1eac6caebc289fe09ddc1d6 | [log] [tgz] |
---|---|---|
author | Donald Sharp <sharpd@cumulusnetworks.com> | Wed Aug 19 21:27:24 2015 -0400 |
committer | Paul Jakma <paul@quagga.net> | Thu Sep 24 15:26:43 2015 +0100 |
tree | a915a98d648f6a8ff0aab2754e46e2398be23d15 | |
parent | a752c3be8c2436941311788f2e7b644a2af0fd65 [diff] |
bgpd: Fix small memory leak in str2prefix_rd str2prefix_rd has a memory leak. This commit fixes that issue Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index cf4ab6f..8a1ed70 100644 --- a/bgpd/bgp_mplsvpn.c +++ b/bgpd/bgp_mplsvpn.c
@@ -220,6 +220,7 @@ } memcpy (prd->val, s->data, 8); + XFREE(MTYPE_TMP, half); return 1; }