str2prefix_rd has a memory leak. This commit fixes that issue
Signed-off-by: Donald Sharp <[email protected]>
---
bgpd/bgp_mplsvpn.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c
index 3d2dade..088bd26 100644
--- a/bgpd/bgp_mplsvpn.c
+++ b/bgpd/bgp_mplsvpn.c
@@ -223,6 +223,7 @@ str2prefix_rd (const char *str, struct prefix_rd *prd)
}
memcpy (prd->val, s->data, 8);
+ XFREE(MTYPE_TMP, half);
return 1;
}
--
1.7.10.4
_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev