]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix memory leak in aggregate path info
authorChirag Shah <chirag@nvidia.com>
Fri, 19 May 2023 18:41:38 +0000 (11:41 -0700)
committerChirag Shah <chirag@nvidia.com>
Fri, 19 May 2023 21:45:49 +0000 (14:45 -0700)
Fix memory leak in aggregate route path info
comparison api.

Signed-off-by: Chirag shah <chirag@nvidia.com>
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)