mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 10:48:03 +00:00
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>
This commit is contained in:
parent
ee0aaff4bc
commit
6fafecdc67
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user