From: Philippe Guibert Date: Mon, 30 Jan 2023 11:02:15 +0000 (+0100) Subject: rfapi: free useless attr X-Git-Tag: base_9.0~320^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=6fafecdc67713b12df0a01a58df5dec7ed5604d2;p=matthieu%2Ffrr.git 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 --- 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,