]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_route.c
bgpd: fix memory leak in aggregate path info
[mirror_frr.git] / bgpd / bgp_route.c
index 43b5a3fd09531fa257e961dfaeb4fd56585ccc9c..2624ae013fec181c47793e1f9171370765831af7 100644 (file)
@@ -7418,7 +7418,7 @@ static bool bgp_aggregate_info_same(struct bgp_path_info *pi, uint8_t origin,
 
        asnotation = bgp_get_asnotation(NULL);
 
-       if (!ae)
+       if (!aspath)
                ae = aspath_empty(asnotation);
 
        if (!pi)