From 6fafecdc67713b12df0a01a58df5dec7ed5604d2 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Mon, 30 Jan 2023 12:02:15 +0100 Subject: [PATCH] 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 --- bgpd/rfapi/vnc_import_bgp.c | 4 ++++ 1 file changed, 4 insertions(+) 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,