From: Donald Sharp Date: Fri, 22 Mar 2019 07:45:48 +0000 (-0400) Subject: Merge pull request #3776 from opensourcerouting/pbrd-interface-nexthops X-Git-Tag: 7.1_pulled~154 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8d39ebf675a8a2fafde0dfa74ed927f364b3c6db;p=matthieu%2Ffrr.git Merge pull request #3776 from opensourcerouting/pbrd-interface-nexthops pbrd: add support for interface nexthops --- 8d39ebf675a8a2fafde0dfa74ed927f364b3c6db diff --cc lib/nexthop_group.c index f940418d83,bf298c6dec..27ab04279c --- a/lib/nexthop_group.c +++ b/lib/nexthop_group.c @@@ -205,10 -219,15 +219,13 @@@ static int nhgl_cmp(struct nexthop_hol static void nhgl_delete(struct nexthop_hold *nh) { - if (nh->intf) - XFREE(MTYPE_TMP, nh->intf); + XFREE(MTYPE_TMP, nh->intf); - if (nh->nhvrf_name) - XFREE(MTYPE_TMP, nh->nhvrf_name); + XFREE(MTYPE_TMP, nh->nhvrf_name); + if (nh->addr) + sockunion_free(nh->addr); + XFREE(MTYPE_TMP, nh); }