summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_attr.h
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2016-12-17 23:58:33 +0100
committerLou Berger <lberger@labn.net>2017-01-02 21:05:49 +0100
commitbede77445018ed62042f677adc82654ab32ba4c9 (patch)
tree07e9dddc04d7d5a41bc21b21355d8993cbc428a8 /bgpd/bgp_attr.h
parentrfapi: pickup recent changes (diff)
downloadfrr-bede77445018ed62042f677adc82654ab32ba4c9.tar.xz
frr-bede77445018ed62042f677adc82654ab32ba4c9.zip
bgp: Use intern/unintern for encap to fix valgrind identified memory leak
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'bgpd/bgp_attr.h')
-rw-r--r--bgpd/bgp_attr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_attr.h b/bgpd/bgp_attr.h
index d4f45ba60..6e639078d 100644
--- a/bgpd/bgp_attr.h
+++ b/bgpd/bgp_attr.h
@@ -58,6 +58,8 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
struct bgp_attr_encap_subtlv {
struct bgp_attr_encap_subtlv *next; /* for chaining */
+ /* Reference count of this attribute. */
+ unsigned long refcnt;
uint16_t type;
uint16_t length;
uint8_t value[1]; /* will be extended */