bgpd: Fix memory leak in bgpd/bgp_route.c

In function bgp_aggregate_add, variables 'aspath' and 'community'
are malloced but not guaranteed to be freed before the function
returns.

Signed-off-by: Denil Vira <denil@cumulusnetworks.com>
1 file changed