summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2023-01-30 12:02:15 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-02-24 08:16:27 +0100
commit6fafecdc67713b12df0a01a58df5dec7ed5604d2 (patch)
treeae20049a5bdd1bc80be2b3df2fe22485c0ad45dc
parentee0aaff4bc2f57cdfd250d5f84a3893983246ff5 (diff)
rfapi: free useless attr
The attr pointer has been interned during the process of the function, but has to be uninterned at the end. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
-rw-r--r--bgpd/rfapi/vnc_import_bgp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/rfapi/vnc_import_bgp.c b/bgpd/rfapi/vnc_import_bgp.c
index 7c8e8f35c9..19ac6f353d 100644
--- a/bgpd/rfapi/vnc_import_bgp.c
+++ b/bgpd/rfapi/vnc_import_bgp.c
@@ -834,6 +834,8 @@ static void vnc_import_bgp_add_route_mode_plain(struct bgp *bgp,
if (ecom)
ecommunity_free(&ecom);
+ if (iattr)
+ bgp_attr_unintern(&iattr);
}
static void vnc_import_bgp_add_route_mode_nvegroup(
@@ -1030,6 +1032,8 @@ static void vnc_import_bgp_add_route_mode_nvegroup(
if (ecom)
ecommunity_free(&ecom);
+ if (iattr)
+ bgp_attr_unintern(&iattr);
}
static void vnc_import_bgp_del_route_mode_plain(struct bgp *bgp,